Re: NSTableView, IB & NSUserDefaults
Re: NSTableView, IB & NSUserDefaults
- Subject: Re: NSTableView, IB & NSUserDefaults
- From: "David Symonds" <email@hidden>
- Date: Tue, 27 Nov 2007 12:07:06 +1100
On Nov 27, 2007 1:44 AM, Chris Heimark <email@hidden> wrote:
> HI:
>
> I was finally able to get NSUserDefaults binding to (MOSTLY) work
> with an NSTableView without resorting to any code at all. It is
> really neat how the bindings work for an NSTableView are setup. I
> just had to make sure that the NSTableView dataSource was pointing at
> shared defaults, table references were specified, etc. And I don't
> even need to have the delegate of the NSTableView pointing at my
> application controller.
If you're using NSTableView bindings, you shouldn't need to use the
dataSource outlet, which is probably the source (pardon the pun) of
your problem here. Try going back to just the bindings, and bind each
NSTableColumn to the correct object/controller with the relevant key
as the binding model path.
Dave.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden