toolbar icons and images

2013-11-09 Thread 2551
I’ve spent the entire morning trying to import my own custom images for toolbar icons, with varying success. While they tend to look OK in both the ImageAssets interface and in the xib file, when I build and run the app they sometimes render correctly but (more often) sometimes do not. I’ve exp

Re: Autolayout error with NSSplitView When Divider Programmatically Moved

2013-11-09 Thread Kyle Sluder
> On Nov 9, 2013, at 4:04 PM, Darren Wheatley > wrote: > > I have a 10.7 app built on 10.9. I'm debugging on 10.9. > > My main view has a splitView with two panes: a webview in one, and an > NSScrollView in the other. > > When the app starts I programmatically move the divider to the right to

Autolayout error with NSSplitView When Divider Programmatically Moved

2013-11-09 Thread Darren Wheatley
I have a 10.7 app built on 10.9. I'm debugging on 10.9. My main view has a splitView with two panes: a webview in one, and an NSScrollView in the other. When the app starts I programmatically move the divider to the right to hide the right-hand pane and the enclosed NSScrollView. When this hap

Re: How to tell if a file is writable in sandboxed mode?

2013-11-09 Thread Dong Feng
I wonder whether you want to do this in the first place. I had tried the same thing on Windows, that is, checking write permission upfront. I ended up with just writing and letting it fail if the permission was not granted. Windows permission rules are very complicated and API is quite unfriendly.

Re: Getting mouse clicks when the main loop is busy

2013-11-09 Thread Kyle Sluder
On Nov 8, 2013, at 11:17 AM, Graham Cox wrote: > The more philosophical question is why do this on the main thread? > > Part of it has to do with keeping my options open - I can use a thread or > not. The situation is in fact handling the file read for NSDocument, so > setting +canConcurrently

Re: Weird bug affecting 10.6 (but not newer)

2013-11-09 Thread Pax
Thank you Ken and Keary. That nailed it - and I'm now a very happy chap. Thanks for this. On 9 Nov 2013, at 16:59, Keary Suska wrote: > On Nov 9, 2013, at 9:33 AM, Pax wrote: > >> My application has three buttons, each with the same Sent Action. In fact, >> all of the buttons are identical

Re: Weird bug affecting 10.6 (but not newer)

2013-11-09 Thread Keary Suska
On Nov 9, 2013, at 9:33 AM, Pax wrote: > My application has three buttons, each with the same Sent Action. In fact, > all of the buttons are identical, except for their name, icon and identifier > (the identifiers are 0, 1 and 2). > > The Sent Action points to a spot of code which will select a

Re: Weird bug affecting 10.6 (but not newer)

2013-11-09 Thread Ken Thomases
On Nov 9, 2013, at 10:33 AM, Pax wrote: > My application has three buttons, each with the same Sent Action. In fact, > all of the buttons are identical, except for their name, icon and identifier > (the identifiers are 0, 1 and 2). > > The Sent Action points to a spot of code which will select

Weird bug affecting 10.6 (but not newer)

2013-11-09 Thread Pax
My application has three buttons, each with the same Sent Action. In fact, all of the buttons are identical, except for their name, icon and identifier (the identifiers are 0, 1 and 2). The Sent Action points to a spot of code which will select a tab view: -(IBAction)selectView:(id)sender {

Re: How to tell if a file is writable in sandboxed mode?

2013-11-09 Thread Mike Abdullah
Does querying for NSURLIsWritableKey give you any more info? On 8 Nov 2013, at 16:31, Oleg Krupnov wrote: > I’m trying to use -[NSFileManager isWritableFileAtPath:], but when it > returns NO, I’d like to know if it’s “no” because the app simply > doesn’t have access to this path due to sandboxin

Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-09 Thread Roland King
And that gives me 2013 downloads only On 9 Nov, 2013, at 10:30 pm, T.J. Usiyan wrote: > https://developer.apple.com/downloads/index.action?name=wwdc > > > On Fri, Nov 8, 2013 at 11:23 PM, 2551 <2551p...@gmail.com> wrote: > >> For all those interested: >> >> https://www.dropbox.com/s/nqdsguia

Re: Apple Sample Code WWDC 2010 session 114 (2551)

2013-11-09 Thread T.J. Usiyan
https://developer.apple.com/downloads/index.action?name=wwdc On Fri, Nov 8, 2013 at 11:23 PM, 2551 <2551p...@gmail.com> wrote: > For all those interested: > > https://www.dropbox.com/s/nqdsguiap4qs9ec/WWDC_2010_114.zip > > Best > > Phil > http://applehelpwriter.com > > On 9 Nov 2013, at 01:54, B