Anyone recommend Dash?

2015-07-08 Thread Graham Cox
Is anyone using Dash for API documentation? Can you recommend it? I received a bundle offer including this today and it seems like a good deal, but wonder if it’s worth using over and above XCode’s standard docs? —Graham ___ Cocoa-dev mailing

How can I make my application support splitview in El Capitan?

2015-07-08 Thread 周章林
Hi, all, My application supports full screen, and I can use "Ctrl+Command+F" to make my application window enter full screen mode in EI Capitan. I encounter a problem when I try the split view node. When I hold-click on the green expand window of Finder and put Finder window in the left side of sp

Re: How to resize accessory view to match Open panel

2015-07-08 Thread Lee Ann Rucker
My accessory views use autolayout and that seems to work fine in 10.9 and up. In 10.8, you need [accessoryView layoutSubtreeIfNeeded]; if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_8) { [accessoryView setTranslatesAutoresizingMaskIntoConstraints:YES]; } On Jul 8, 2015,

Re: How to resize accessory view to match Open panel

2015-07-08 Thread Richard Charles
> On Jul 8, 2015, at 9:33 AM, Jonathan Taylor > wrote: > > I have an open panel to which I am trying to add an accessory view. That much > works. However I would like the accessory view to resize to fit the width of > the parent window. It’s just a textual description, after all. I have a pr

How to resize accessory view to match Open panel

2015-07-08 Thread Jonathan Taylor
I feel this should be a simple question, but I cannot find an answer that works. I have an open panel to which I am trying to add an accessory view. That much works. However I would like the accessory view to resize to fit the width of the parent window. It’s just a textual description, after al

Re: selectText of NSTextField on focus

2015-07-08 Thread Richard Charles
> On Jul 8, 2015, at 7:00 AM, Willeke wrote: > >> @implementation MyTextField >> >> - (void)mouseDown:(NSEvent *)event >> { >> NSText *editor = self.currentEditor; >> assert(editor && "Current editor is nil!"); >> assert(editor.isFieldEditor && "Editor not a field editor!"); >> NSRange

Re: selectText of NSTextField on focus

2015-07-08 Thread Willeke
> @implementation MyTextField > > - (void)mouseDown:(NSEvent *)event > { >NSText *editor = self.currentEditor; >assert(editor && "Current editor is nil!"); >assert(editor.isFieldEditor && "Editor not a field editor!"); >NSRange range = NSMakeRange(0, editor.string.length); >[ed

Re: Predicate warning from text view

2015-07-08 Thread Shane Stanley
On 8 Jul 2015, at 9:49 pm, David Durkee wrote: > > I am seeing this in my application too, and turning off Markup did eliminate > it. I was really glad to see your email about that. Makes me want to see if > any other mysterious bugs go away with Markup turned off. > > In my case it is not a s

Re: Predicate warning from text view

2015-07-08 Thread David Durkee
I am seeing this in my application too, and turning off Markup did eliminate it. I was really glad to see your email about that. Makes me want to see if any other mysterious bugs go away with Markup turned off. In my case it is not a subclass of a NSTextView, but a straight instance of one. Dav

Re: Sizing NSScrollView width to exactly fit NSTableView

2015-07-08 Thread Jonathan Mitchell
Hi Try constraining the document view (your table view in this case), to the width of the scroll content view (the NSClipView instance). You will also need to ensure that the columns are sized in such a way as to fit the prevailing table view frame width. NSDictionary *viewsDict = @{@"do