Re: PDFView focus ring

2012-02-04 Thread Martin Hewitson
Oh, and for the app losing focus, you can use: [NSApp isActive] to decide whether to draw the ring or not. Then in my app delegate I use -applicationWillResignActive: to trigger a redraw. Martin On 5, Feb, 2012, at 02:20 AM, Quincey Morris wrote: > On Feb 4, 2012, at 16:17 , Graham Cox wrote:

Re: PDFView focus ring

2012-02-04 Thread Martin Hewitson
OK, I implemented Graham's solution and it works very well in my situation. The PDFView in question is not flush with any of the edges of a window, so I don't need to worry about that here. Thanks, Graham. Thanks, all! Martin On 5, Feb, 2012, at 02:20 AM, Quincey Morris wrote: > On Feb 4, 20

Re: NSTextField recieves string but does not display it?

2012-02-04 Thread Quincey Morris
On Feb 4, 2012, at 19:11 , Erik Stainsby wrote: > I have two windows. A is the source, B is the destination. A context menu > action in A sets a string value on a message. The message arrives in window > B, in a view which sets the stringValue of an NSTextField. I then read the > stringValue ba

Re: PDFView focus ring

2012-02-04 Thread Graham Cox
On 05/02/2012, at 12:20 PM, Quincey Morris wrote: > The one issue this doesn't solve is that of making room around the view to > draw the focus ring. If one or more edges of the view are flush with the edge > of the window, the exterior ring looks ugly. True, though if all edges are flush wit

Re: NSTextField recieves string but does not display it?

2012-02-04 Thread Jens Alfke
On Feb 4, 2012, at 7:11 PM, Erik Stainsby wrote: > I have two windows. A is the source, B is the destination. A context menu > action in A sets a string value on a message. The message arrives in window > B, in a view which sets the stringValue of an NSTextField. I then read the > stringValue

NSTextField recieves string but does not display it?

2012-02-04 Thread Erik Stainsby
I am perplexed. I have two windows. A is the source, B is the destination. A context menu action in A sets a string value on a message. The message arrives in window B, in a view which sets the stringValue of an NSTextField. I then read the stringValue back and echo it via NSLog() to ensure i

Re: PDFView focus ring

2012-02-04 Thread Quincey Morris
On Feb 4, 2012, at 16:17 , Graham Cox wrote: > The way I've done this is to handle the focus ring in the view's -drawRect > method. You need to focus on the superview so you can draw outside your > frame, but that's not a problem - just do it after you've drawn the rest of > your normal content

Re: PDFView focus ring

2012-02-04 Thread Graham Cox
On 04/02/2012, at 8:06 PM, Martin Hewitson wrote: > Thank you all for your responses. I need to support 10.6.8, so in end I chose > two different approaches for the textview and pdfview. > > For the textview, I handle drawing a thin rect around the textview's bounds > when it is first responde

Magnify Glass Color Picker

2012-02-04 Thread koko
Is it possible to configure the sharedColorPanel so that it displays only the magnifying glass picker with no toolbar picker modes, no palette, basically nothing but the panel containing the magnifying glass picker. I have tried a few things with no luck. -koko _

Re: NSColorWell / NSColorPanel

2012-02-04 Thread koko
That is what I ended up doing and all is well. Thanks, Graham for confirming what I found to be the behavior. -koko On Feb 3, 2012, at 10:18 PM, Graham Cox wrote: > > On 04/02/2012, at 11:08 AM, koko wrote: > >> In a modal panel I have a NSColorWell. Clicking the NSColorWell display a >> N

Re: Recently Opened in Doc

2012-02-04 Thread Brad Stone
Thanks everyone. In the end, since this is a shoebox app like iPhoto where the user doesn't access their data via File->Open and the file name doesn't necessarily make sense to the user I suppressed the Open Recently menu (the user has a History menu like Safari for that purpose). For the dock

Re: iCloud sync per app activation

2012-02-04 Thread Roland King
I haven't seen any either, iCloud apps on Mac that is. All the documentation I've read however seems to indicate that iCloud support should be optional. I know quite a few users who don't have and never will have an iCloud account and they need to be catered for. What I hate most about the dua

Re: iCloud beta testing

2012-02-04 Thread Roland King
On Feb 4, 2012, at 10:53 PM, Martin Hewitson wrote: > > On 4, Feb, 2012, at 03:08 PM, Roland King wrote: > >> >> On Feb 4, 2012, at 5:09 PM, Martin Hewitson wrote: >> >>> Dear list, >>> >>> For those of you who are iOS aficionados, I guess this is obvious. How do I >>> give an app to beta t

Re: iCloud beta testing

2012-02-04 Thread Martin Hewitson
On 4, Feb, 2012, at 03:08 PM, Roland King wrote: > > On Feb 4, 2012, at 5:09 PM, Martin Hewitson wrote: > >> Dear list, >> >> For those of you who are iOS aficionados, I guess this is obvious. How do I >> give an app to beta testers if it uses iCloud? Do I need to create a >> developer provi

Re: iCloud sync per app activation

2012-02-04 Thread Martin Hewitson
Dear Roland, Thanks for the reply. That provides food for thought. One thing I should have mentioned is that I'm talking about an OS X app, not iOS. My impression so far is that Apple wants us to have iCloud enabled in the app, or not, but it should not be a user configurable thing. Perhaps I'

Re: iCloud sync per app activation

2012-02-04 Thread Roland King
On Feb 4, 2012, at 7:40 PM, Martin Hewitson wrote: > Dear list, > > I'm wondering about whether or not an app that uses iCloud to sync a > core-data store (shoe-box app) should have a user preference to disable > syncing. Suppose the user doesn't want to sync across machines? I don't think >

Re: iCloud beta testing

2012-02-04 Thread Roland King
On Feb 4, 2012, at 5:09 PM, Martin Hewitson wrote: > Dear list, > > For those of you who are iOS aficionados, I guess this is obvious. How do I > give an app to beta testers if it uses iCloud? Do I need to create a > developer provisioning profile which contains the machine UUID or every beta

iCloud sync per app activation

2012-02-04 Thread Martin Hewitson
Dear list, I'm wondering about whether or not an app that uses iCloud to sync a core-data store (shoe-box app) should have a user preference to disable syncing. Suppose the user doesn't want to sync across machines? I don't think they get a check-box in the iCloud system prefs pane, right? An

Re: Loading Typeface from NSBundle

2012-02-04 Thread Pascal Harris
Thanks for this - I shall try it at the first opportunity. With regards to legality, I'm quite sure that I'm on solid ground with regards to redistributability. I'm the designer of the typeface. (Geeky background information) Nearly twenty years ago, I got a copy of Fontographer 3.something in

iCloud beta testing

2012-02-04 Thread Martin Hewitson
Dear list, For those of you who are iOS aficionados, I guess this is obvious. How do I give an app to beta testers if it uses iCloud? Do I need to create a developer provisioning profile which contains the machine UUID or every beta tester? Does then the beta tester have to do the (slightly pai

Re: PDFView focus ring

2012-02-04 Thread Martin Hewitson
Thank you all for your responses. I need to support 10.6.8, so in end I chose two different approaches for the textview and pdfview. For the textview, I handle drawing a thin rect around the textview's bounds when it is first responder. I just handle the change in -becomeFirstResponder and -res