Re: Throwing an error from a NSDocument.init override

2017-02-15 Thread Quincey Morris
On Feb 15, 2017, at 00:29 , Daryle Walker wrote: > > Apple’s code will call my versions instead of the ones in NSDocument, right? Yes, because your subclass initializers are (from the Obj-C perspective) overrides, or (from the Swift perspective) the only visible ones for your

Re: Sometimes all my menus are disabled

2017-02-15 Thread Gary L. Wade
If I were you, the first thing I’d do is put what you have (your pre-work and any backups) in a repository so you can track your history. Xcode has made integration with Git so easy. There are definitely some shortcomings with more esoteric needs, but for the most part, you’d be fine sticking

Re: Sometimes all my menus are disabled

2017-02-15 Thread Andreas Falkenhahn
On 14.02.2017 at 23:15 Graham Cox wrote: > It’s usually easier to float downstream. +1 for nice metaphor. On the good news side: I've fixed it now. The trick was to first fix the spurious menu trees directly in the XML, then to delete keyedobjects.nib, then to make a dummy change directly in

Some help with NSComparisonPredicate please

2017-02-15 Thread sqwarqDev
Building with Xcode 7.3.1, macOS 10.11.6 I’m using an NSPredicate with the form: NSString *targetString = @“some string or other”; NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"kMDItemFSName contains[cd] %@“, targetString]]; When I build and run my app, this runs fine on

Re: Problem with NSWindowCollectionBehaviorCanJoinAllSpaces

2017-02-15 Thread Bill Cheeseman
> On Feb 15, 2017, at 7:18 AM, Bill Cheeseman wrote: > > After I switch to a different space, rows in one column of the browser view > do not become visible when I scroll the column vertically. I figured out that the problem is a conceptual misfit between Mission

Watch extension running old version

2017-02-15 Thread Eric E. Dolecki
I have a watch extension. When I build to my phone, the watch gets the correct version installed (I can tell by changes I made in its UI). Works fine - communication works between phone and watch. Later on, I'll run the extension again - and I get a previous version running. What might be

Problem with NSWindowCollectionBehaviorCanJoinAllSpaces

2017-02-15 Thread Bill Cheeseman
My application sets NSCollectionBehavior for all its windows to NSWindowCollectionBehaviorCanJoinAllSpaces. The main window contains an NSBrowser view. As long as I remain in the original space where I launched my application, the browser view works correctly. After I switch to a different

Re: Change NSCursor globally

2017-02-15 Thread Colas B
Hi Uli, thanks for your answer.I want to do the former: when the user enables a mode in the application, the cursor changes, exactly in the way you described (the shape changes). The user should be able to use this custom cursor over a PDFView, a UIScrollView, etc. However, I need the cursor

NSArrayController still doesn't support NSOrderedSet? (was: Are instances of a NSManagedObject subclass usable as regular objects?)

2017-02-15 Thread Daryle Walker
> On Feb 14, 2017, at 6:50 PM, Daryle Walker wrote: > > Looking at my code again, I had a massive brain-fart. I created all the data > objects with local “let,” but forgot to assign the top-level object to my > document’s data property. > > Once I did that, the window

Re: Throwing an error from a NSDocument.init override

2017-02-15 Thread Daryle Walker
> On Feb 14, 2017, at 1:24 PM, Quincey Morris > wrote: > > On Feb 14, 2017, at 00:26 , Daryle Walker > wrote: >> >> But I can’t call the “super” versions of those other initializers from >> within my override. >