Re: NSOutlineView with C++ classes
Re: NSOutlineView with C++ classes
- Subject: Re: NSOutlineView with C++ classes
- From: Jerry Krinock <email@hidden>
- Date: Fri, 23 Sep 2005 15:05:06 -0700
on 05/09/23 05:58, Daniel Price at email@hidden wrote:
> Is there some other way of passing back
> Group as an id without crashing the code?
I'm not sure, but since I don't see any replies to this long post, I'll
offer a clue which might answer this one question. I had made my own data
tree by adding a category to NSMutableDictionary. It crashed unpredictably
until I implemented some advice I found in the list archives: Wrap (parent)
pointers in NSValue. Wrap using -valueWithPointer, unwrap using
-pointerValue. I never understood the magic of this but it definitely
eliminated all my crashes.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden