Re: Mysterious crash report

2012-11-15 Thread Mike Abdullah
On 14 Nov 2012, at 22:10, Graham Cox graham@bigpond.com wrote: On 15/11/2012, at 8:59 AM, Nick Zitzmann n...@chronosnet.com wrote: Oh. I understand how that could happen with GC if the app tried to re-use a finalized object, but the only resurrections I've seen happen under RR or

Re: Manual reference counting and doubly-linked lists

2012-11-15 Thread Roland King
On 15 Nov, 2012, at 12:47 PM, Daniel DeCovnick danhd...@mac.com wrote: Strong/retain for next, weak/assign for previous. On Nov 14, 2012, at 7:59 PM, William Squires wrote: @interface DoublyLinkedListClass @property (nonatomic, retain) Thing *head; @end doublist.m

Re: Manual reference counting and doubly-linked lists

2012-11-15 Thread Uli Kusterer
On Nov 15, 2012, at 4:59 AM, William Squires wsqui...@satx.rr.com wrote: @interface Thing : NSObject @property (nonatomic, ???) Thing *nextThing; @property (nonatomic, ???) Thing *prevThing; @end and somewhere I keep a reference to the 'head' of this doubly-linked list. What should

Re: What makes a URL Handler be persistent?

2012-11-15 Thread Jens Alfke
On Nov 14, 2012, at 4:48 PM, Jerry Krinock je...@ieee.org wrote: Now, my app itself does not handle the URL directly. The URL handler is actually installed in a faceless helper app which is in the main app's Contents/Helpers/ directory. (This was done so I could control whether or not

Location permission alert self-dismisses

2012-11-15 Thread Rick Mann
I've got this behavior in both the sim and on device that, after a fresh install of my app, upon launch it presents the alert requesting permission for location services, which then immediately disappears. I tried googling for a solution, but can't come up with suitable search terms that don't

Invoking protocol method on the main thread

2012-11-15 Thread Graham Cox
Hi all, I have a formal protocol for a notification callback I want to make. The protocol inherits the NSObject protocol. The caller accepts only objects conforming to this protocol as its delegate. When it's time to invoke the callback, I'd like to do so on the main thread, since the caller

Re: Invoking protocol method on the main thread

2012-11-15 Thread Greg Parker
On Nov 15, 2012, at 3:17 PM, Graham Cox graham@bigpond.com wrote: I have a formal protocol for a notification callback I want to make. The protocol inherits the NSObject protocol. The caller accepts only objects conforming to this protocol as its delegate. When it's time to invoke the

Re: Invoking protocol method on the main thread

2012-11-15 Thread Graham Cox
On 16/11/2012, at 10:23 AM, Greg Parker gpar...@apple.com wrote: The simple solution is to declare your property as NSObjectMyProtocol* . D'oh!! Thanks - that was simple. I thought I'd tried it, but my syntax was wrong: I had NSObject*MyProtocol --Graham

Static table view cells inconsistently update

2012-11-15 Thread Rick Mann
I have a view controller in a storyboard with a static content grouped-style table. One of the sections has seven table view cells, all built in right detail type. I have IBOutlet UILabel* references to each of the right-hand detail labels, and those get updated in my view controller. However,

Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Rick Mann
I know I can use KVO on a specific property of my NSManagedObject, but is there a way to get notified if any property changes? I'm trying to avoid a bunch of -addObserver:… and -removeObserer:… calls. I know I can listen for the context did save notification, but I'd rather catch the changes

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Rick Mann
On Nov 15, 2012, at 16:19 , Rick Mann rm...@latencyzero.com wrote: I know I can use KVO on a specific property of my NSManagedObject, but is there a way to get notified if any property changes? I'm trying to avoid a bunch of -addObserver:… and -removeObserer:… calls. I know I can listen

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Sean McBride
On Thu, 15 Nov 2012 16:19:53 -0800, Rick Mann said: I know I can use KVO on a specific property of my NSManagedObject, but is there a way to get notified if any property changes? I'm trying to avoid a bunch of -addObserver:… and -removeObserer:… calls. You could create a dependent key, that

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Rick Mann
On Nov 15, 2012, at 16:32 , Sean McBride s...@rogue-research.com wrote: On Thu, 15 Nov 2012 16:19:53 -0800, Rick Mann said: I know I can use KVO on a specific property of my NSManagedObject, but is there a way to get notified if any property changes? I'm trying to avoid a bunch of

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Kyle Sluder
On Nov 15, 2012, at 4:19 PM, Rick Mann rm...@latencyzero.com wrote: I know I can use KVO on a specific property of my NSManagedObject, but is there a way to get notified if any property changes? I'm trying to avoid a bunch of -addObserver:… and -removeObserer:… calls. I know I can listen

Re: Getting notified of any change to a specific NSManagedObject?

2012-11-15 Thread Rick Mann
On Nov 15, 2012, at 17:04 , Kyle Sluder k...@ksluder.com wrote: Override -didChangeValueForKey:? Apparently we are strongly discouraged from overriding those methods. :-) -- Rick ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Safe to install NSTrackingArea on a subview?

2012-11-15 Thread Kyle Sluder
I just put together a quick sample project to prove to myself that one can safely install a tracking area on a subview: http://www.optshiftk.com/wp-content/uploads/2012/11/SubviewTrackingArea.zip But I'm still not convinced that this is guaranteed to work. It doesn't help that using Google I

Re: Safe to install NSTrackingArea on a subview?

2012-11-15 Thread Quincey Morris
On Nov 15, 2012, at 17:55 , Kyle Sluder k...@ksluder.com wrote: In particular, I'm concerned about -updateTrackingAreas. This message is sent to the view, not the tracking area's owner, but the view itself doesn't know about the tracking area. If the owner doesn't happen to be a view in the

Re: Invoking protocol method on the main thread

2012-11-15 Thread Seth Willits
On Nov 15, 2012, at 3:17 PM, Graham Cox wrote: How can I invoke a method of my protocol on the main thread? Aside from Greg's simple suggestion, GCD is your friend. Then you're not beholden to a single method call, or the interface requirements of the performSelector methods.

Storyboard UISplitViewController difficulty

2012-11-15 Thread Rick Mann
It seems that when using storyboards, UISplitViewController gets loaded and calls its delegate before the related view controllers even get loaded. I'm trying to set my right-side view controller as the delegate in its -viewDidLoad, but at this point it's too late, and the willHide delegate

Storyboard UISplitViewController difficulty

2012-11-15 Thread Rick Mann
Oops, forgot my question: How can I work around this problem? I need to install the popover button item, but I don't have it. I tried setting the delegate in IB, given that it's all visible in the storyboard, but it won't let me set the split view delegate across scenes. --- It seems that