CALayer show/hide question when moving to full screen.

2012-08-28 Thread Koen van der Drift
As discussed in another thread last week, I am using CALayers to add custom text highlighting in an NSTextView. Briefly, based on the user input I get a range of text, get the rect(s) of the text and calculate the CALayer(s). Now when the user resizes the window, of course the CALayers need to

Re: CALayer show/hide question when moving to full screen.

2012-08-28 Thread Markus Spoettl
On 8/28/12 12:09 PM, Koen van der Drift wrote: As discussed in another thread last week, I am using CALayers to add custom text highlighting in an NSTextView. Briefly, based on the user input I get a range of text, get the rect(s) of the text and calculate the CALayer(s). Now when the user re

Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Motti Shneor
Hello everyone. I'm trying to do something simple --- to have an NSSegmentedControl (2 segments) save and restore its selection (the "pressed" segments) from the user-defaults. Documentation seems to be quite clear: Cocoa Bindings Reference: NSSegmentedControl Bindings

Re: Binding NSSegmentedControl selection to user defaults

2012-08-28 Thread Keary Suska
On Aug 28, 2012, at 9:28 AM, Motti Shneor wrote: > But when I'm trying to do this in my XCode 4.2 project, in a .xib file, I > experience several problems, and finally a crash on loading the .xib file. > > 1. In Interface builder, only one of the binding options appears for > NSSegmentedContro

Re: Cocoa-dev Digest, Vol 9, Issue 619

2012-08-28 Thread Koen van der Drift
Hi Markus, Yes, my notifications are delivered, the code I showed was to register for the notifications in my ViewController's awakeFromNib method. The actual methods are exactly as you showed in your post. - Koen. On Aug 28, 2012, at 3:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > Are

CoreData UIManagedDocument saving/closing questions

2012-08-28 Thread davelist
This is on iOS 5 and higher. I have an iOS app that can open separate data files (one open at a time) using a UIManagedDocument subclass. When I do a -saveToURL:forSaveOperation:completionHandler do I need to that inside a: [[UIApplication sharedApplication] beginBackgroundTaskWithExpirati