|
iOS keyboard extension
Anybody else have problems with developing iOS keyboard extensions not working? I've barely added any code except a Next Keyboard button, figured out how to attach Xcode to the keyboard target after
Anybody else have problems with developing iOS keyboard extensions not working? I've barely added any code except a Next Keyboard button, figured out how to attach Xcode to the keyboard target after
|
By
Steve Mills
·
#1096
·
|
|
Re: Open panel not opening in Catalina
And further, if I remove the __weak qualifier, it works without a breakpoint...
OK, this code is from years ago, and I no longer know why the reference to the open panel had to be weak. It is used
And further, if I remove the __weak qualifier, it works without a breakpoint...
OK, this code is from years ago, and I no longer know why the reference to the open panel had to be weak. It is used
|
By
John Brownie
·
#1095
·
|
|
Re: Open panel not opening in Catalina
Why are you declaring this __weak? That means the open panel is subject to *immediate* deallocation, which sounds exactly like the symptoms you’re seeing.
Why are you declaring this __weak? That means the open panel is subject to *immediate* deallocation, which sounds exactly like the symptoms you’re seeing.
|
By
Quincey Morris
·
#1094
·
|
|
Re: Open panel not opening in Catalina
A little more investigation reveals that it seems that the key thing is actually setting a breakpoint and stepping over the line:
__weak NSOpenPanel *openPanel = [NSOpenPanel openPanel];
in the
A little more investigation reveals that it seems that the key thing is actually setting a breakpoint and stepping over the line:
__weak NSOpenPanel *openPanel = [NSOpenPanel openPanel];
in the
|
By
John Brownie
·
#1093
·
|
|
Open panel not opening in Catalina
I have a weird situation where I show an open panel via beginSheetModalForWindow:completionHandler:. The problem is that it works OK with Mojave (and before, I assume), but it doesn't work in Catalina
I have a weird situation where I show an open panel via beginSheetModalForWindow:completionHandler:. The problem is that it works OK with Mojave (and before, I assume), but it doesn't work in Catalina
|
By
John Brownie
·
#1092
·
|
|
Re: Weird crash with Mojave, no crash on High Sierra
On Sat, 9 Nov 2019 14:37:55 +0100, Markus Ruggiero said:
Have you tried various debug tools like guard malloc, address sanitizer and thread sanitizer?
Sean
On Sat, 9 Nov 2019 14:37:55 +0100, Markus Ruggiero said:
Have you tried various debug tools like guard malloc, address sanitizer and thread sanitizer?
Sean
|
By
Sean McBride
·
#1091
·
|
|
Re: Weird crash with Mojave, no crash on High Sierra
Stack trace of the crash?
Stack trace of the crash?
|
By
Steve Christensen
·
#1090
·
|
|
Re: Weird crash with Mojave, no crash on High Sierra
Thanks, tried it but did not help. The box was checked, tried both ways, same crash.
Thanks, tried it but did not help. The box was checked, tried both ways, same crash.
|
By
Markus Ruggiero
·
#1089
·
|
|
Re: Weird crash with Mojave, no crash on High Sierra
Sounds like you have ‘Release When Closed’ checked in you XIB/NIB for the window. Try unchecking it.
Click the XIB/NIB in your project navigator and hi-light the window in question in the tree
Sounds like you have ‘Release When Closed’ checked in you XIB/NIB for the window. Try unchecking it.
Click the XIB/NIB in your project navigator and hi-light the window in question in the tree
|
By
Sandor Szatmari
·
#1088
·
|
|
Weird crash with Mojave, no crash on High Sierra
Way back when I dabbled around with ObjC (that was in 2002!) I created a small app that shows images from disk. About a year ago I upgraded this app to 64bit and ARC. This went well after a bit of
Way back when I dabbled around with ObjC (that was in 2002!) I created a small app that shows images from disk. About a year ago I upgraded this app to 64bit and ARC. This went well after a bit of
|
By
Markus Ruggiero
·
#1087
·
|
|
Re: Mysterious build warning with .xib file
I played with this a bit more. It turns out that the bug is “transient”, in the sense that if you quit Xcode and relaunch, it picks up the correct deployment target.
I played with this a bit more. It turns out that the bug is “transient”, in the sense that if you quit Xcode and relaunch, it picks up the correct deployment target.
|
By
Quincey Morris
·
#1086
·
|
|
Re: NSDraggingSession distorts the images I give it
I'm glad I could help. It's just one of those things I've run into myself a million times - I _think_ I've checked all my assumptions when I'm debugging something, and end up off in the weeds (for
I'm glad I could help. It's just one of those things I've run into myself a million times - I _think_ I've checked all my assumptions when I'm debugging something, and end up off in the weeds (for
|
By
Jon Gotow
·
#1085
·
|
|
Re: NSDraggingSession distorts the images I give it
Hi Jon,
Turns out you’re right - the images were NOT square - they vary. It just so happened that the first image in my selection was square, and that’s what I observed in the debugger. Since it
Hi Jon,
Turns out you’re right - the images were NOT square - they vary. It just so happened that the first image in my selection was square, and that’s what I observed in the debugger. Since it
|
By
Graham Cox
·
#1084
·
|
|
Re: NSDraggingSession distorts the images I give it
I’m just relating what I’m observing in the video. Each icon is getting stretched vertically not by a uniform factor, but so that the drawn elements exactly fit the given bounds. Honestly, it
I’m just relating what I’m observing in the video. Each icon is getting stretched vertically not by a uniform factor, but so that the drawn elements exactly fit the given bounds. Honestly, it
|
By
Jon Gotow
·
#1083
·
|
|
Re: NSDraggingSession distorts the images I give it
Hi Jon,
The images are square - the rect returned by -imageRectForItemAtIndex is used to render them in the view as well as supplying the frame to the NSDraggingItem. That’s why it seems odd to me
Hi Jon,
The images are square - the rect returned by -imageRectForItemAtIndex is used to render them in the view as well as supplying the frame to the NSDraggingItem. That’s why it seems odd to me
|
By
Graham Cox
·
#1082
·
|
|
Re: NSDraggingSession distorts the images I give it
Oh, my bad. I mean the drawing code within libItem.previewImage.
- Jon
Oh, my bad. I mean the drawing code within libItem.previewImage.
- Jon
|
By
Jon Gotow
·
#1081
·
|
|
Re: NSDraggingSession distorts the images I give it
Judging from the video, your images are not square. It looks like they're only as large as they need to be to contain the drawn item, and are getting stretched to fit your square NSDraggingItem
Judging from the video, your images are not square. It looks like they're only as large as they need to be to contain the drawn item, and are getting stretched to fit your square NSDraggingItem
|
By
Jon Gotow
·
#1080
·
|
|
NSDraggingSession distorts the images I give it
I’m modernising some old code that does drag and drop the old, simple and perfectly functional (but deprecated) way.
The new way seems twice as complicated to me, but hey-ho.
Anyway, I’m creating
I’m modernising some old code that does drag and drop the old, simple and perfectly functional (but deprecated) way.
The new way seems twice as complicated to me, but hey-ho.
Anyway, I’m creating
|
By
Graham Cox
·
#1079
·
|
|
Re: Mysterious build warning with .xib file
Hmmm, oh well, I guess I’ll just live with it. Bigger fish to fry and all that.
Thanks!
—Graham
Hmmm, oh well, I guess I’ll just live with it. Bigger fish to fry and all that.
Thanks!
—Graham
|
By
Graham Cox
·
#1078
·
|
|
Re: Mysterious build warning with .xib file
I see similar results. It looks like a bug.
If I set “Builds for” to “Deployment Target”, it shows the wrong deployment target (10.13 instead of 10.11), or if I choose a popup setting later
I see similar results. It looks like a bug.
If I set “Builds for” to “Deployment Target”, it shows the wrong deployment target (10.13 instead of 10.11), or if I choose a popup setting later
|
By
Quincey Morris
·
#1077
·
|