Does the NSPersistentContainer name mean anything?

2017-02-12 Thread Daryle Walker
For the one-argument initializer, the name is used to figure out where the model file is. But I’m using the two-argument initializer, where I already give the model file’s location (because it’s in my framework’s bundle). Can I just put any random thing there (even an empty string), or is the

Re: Sometimes all my menus are disabled

2017-02-12 Thread Uli Kusterer
Have you tried printing the responder chain when this happens? But as others have said, funnelling all menu choices through a menuClick: method sounds backwards. On 12 Feb 2017, at 18:01, Andreas Falkenhahn wrote: > I'm experiencing a strange issue with my app.

Is it OK to use the default initializer of NSPersistentStoreDescription?

2017-02-12 Thread Daryle Walker
When I was typing in a test object of type NSPersistentStoreDescription (on Xcode 8 with Swift 3), the auto-complete gave me two initializers. Besides the documented one that takes a URL, there’s one that takes no arguments. Its own notes say it’s for subclasses. I, however, am describing an

Re: Sometimes all my menus are disabled

2017-02-12 Thread Graham Cox
Another possibility is that the target (app delegate) overrides -validateMenuItem: and isn’t doing the right thing. —Graham > On 13 Feb 2017, at 7:55 AM, Kyle Sluder wrote: > >>> >>> On Feb 12, 2017, at 12:36 PM, Andreas Falkenhahn >>> wrote:

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
>> On Feb 12, 2017, at 12:36 PM, Andreas Falkenhahn >> wrote: > > >> On 12.02.2017 at 21:29 Kyle Sluder wrote: >> >> You’ve wired up every single menu item to a single action in your app >> delegate? That’s certainly non-standard. > > It's really old code. It's an

Re: Sometimes all my menus are disabled

2017-02-12 Thread Andreas Falkenhahn
On 12.02.2017 at 21:29 Kyle Sluder wrote: > You’ve wired up every single menu item to a single action in your app > delegate? That’s certainly non-standard. It's really old code. It's an Xcode project I originally created on a PowerPC Mac some 10 years ago, so I don't really remember how I used

Re: Sometimes all my menus are disabled

2017-02-12 Thread Andreas Falkenhahn
On 12.02.2017 at 20:44 Alexander Reichstadt wrote: > Do you subclass NSApplication or alter the responder chain? No, not doing any of that. -- Best regards, Andreas Falkenhahnmailto:andr...@falkenhahn.com ___ Cocoa-dev

Re: Sometimes all my menus are disabled

2017-02-12 Thread Kyle Sluder
On Sun, Feb 12, 2017, at 11:01 AM, Andreas Falkenhahn wrote: > I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out > of 10 > programs starts, all menus of my app are grayed out, including standard > menus > like "Services", "Hide XXX", "Hide Others", "Show All", "Minimize", >

Re: Sometimes all my menus are disabled

2017-02-12 Thread Andreas Falkenhahn
On 12.02.2017 at 19:21 Ken Thomases wrote: > On Feb 12, 2017, at 11:01 AM, Andreas Falkenhahn > wrote: >> I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out of 10 >> programs starts, all menus of my app are grayed out, including standard menus >>

Re: Sometimes all my menus are disabled

2017-02-12 Thread Ken Thomases
On Feb 12, 2017, at 11:01 AM, Andreas Falkenhahn wrote: > > I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out of 10 > programs starts, all menus of my app are grayed out, including standard menus > like "Services", "Hide XXX", "Hide Others", "Show

Sometimes all my menus are disabled

2017-02-12 Thread Andreas Falkenhahn
I'm experiencing a strange issue with my app. Sometimes, maybe in 1 out of 10 programs starts, all menus of my app are grayed out, including standard menus like "Services", "Hide XXX", "Hide Others", "Show All", "Minimize", "Zoom", "Bring All To Front", really everything is grayed out right after

Re: Intercept Save when closing NSDocument

2017-02-12 Thread Mike Abdullah
___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: