Re: Controller Layer + array count + NSOutlineView
Re: Controller Layer + array count + NSOutlineView
- Subject: Re: Controller Layer + array count + NSOutlineView
- From: Brian Webster <email@hidden>
- Date: Wed, 12 Nov 2003 17:08:31 -0600
I just ran into this same situation, except that I don't get a crash, I
get an exception thrown which prints out something like:
[<NSCFArray 0x59ae90> addObserver:forKeyPath:options:context:] is not
supported. Key path: @count
Anyone ever figure out how to get this to work?
On Nov 7, 2003, at 6:06 AM, Raphael Sebbe wrote:
Hi,
I have an array of Layers:
Layer
{
NSString _name;
NSMutableArray _curves;
}
and I want to show layer names and curve counts in a tableview
(_curves is properly init'ed).
I use the "name" key path of NSArrayController for name, it works. I
use the "curves.@count" of the same controller, it doesn't work,
crashes. Isn't it allowed to access count ?
Second question. I noticed the answer from Scott about using
Controller Layer + NSOutlineView, could someone elaborate on this or
share its experience as I was not able to fill the outline view at
all.
Many thanks,
Raphael
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
--
Brian Webster
email@hidden
http://homepage.mac.com/bwebster
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.