Re: Rendering an Array Controller contents outside an NSTableView
Re: Rendering an Array Controller contents outside an NSTableView
- Subject: Re: Rendering an Array Controller contents outside an NSTableView
- From: Todd Ransom <email@hidden>
- Date: Tue, 3 Apr 2007 16:32:10 -0400
Kevin,
There is information on creating custom views that are bindings
enabled here (along with a sample project):
http://homepage.mac.com/mmalc/CocoaExamples/controllers.html
and here:
http://developer.apple.com/documentation/Cocoa/Conceptual/
CocoaViewsGuide/Introduction/chapter_1_section_1.html
I have created a bindings enabled custom view and a view that uses a
datasource and I personally found it easier to create a view that
uses a datasource. The two strategies are not mutually exclusive, of
course. NSTableView is an example of a view that can use either
strategy. In my datasource-driven view I actually used an
NSArrayController to manage its contents, so don't think just because
you are using CD and an array controller your NSView subclass must
use bindings.
hope that helps,
Todd Ransom
Return Self Software
http://returnself.com
On Apr 3, 2007, at 3:12 PM, Kevin Hoffman wrote:
Greetings,
I'm a complete Cocoa newbie, so if there is already a control for
doing this, please let me know. Basically I am looking for a strategy
that I can use in order to render some items out of an array
controller
(fed by Core Data) onto a surface that isn't a standard table like
NSTableView. Basically I have an entity called Thumbtack (title, xloc,
yloc). The array controller is bound to the thumbtacks. What I want is
to make it so that I can bind (something???) to the array controller
such that it will put thumbtacks in the appropriate x/y positions, and
when I add an item to the array controller, a new thumbtack appears,
etc.
I don't want the full source code (that would spoil all the fun),
but I
would love it if someone could give me a general strategy on how to
approach this problem.
Thanks!!
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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