• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings


  • Subject: Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings
  • From: mmalcolm crawford <email@hidden>
  • Date: Sun, 9 Jan 2005 21:24:23 -0800


On Jan 6, 2005, at 10:22 AM, E. Wing wrote: (Contents of off-list message posted with permission.)

It sounds as if all you really need is to use an NSArrayController with
its Object Class Name set to LinePoint?
Thank you for the response. That gives me some hope that this might
actually work. But can you tell me, does this NSArrayController go in
my palette, the application that uses the palette, or both?
If it goes in my palette, does this mean I need to setup an
NSArrayController programatically, because the Nibs I have for the
palette seem to just for the export of the palette.

It's a little difficult to tell exactly what your intent is, but I *think* you could do it either way.

You could probably create a self-contained palette item that includes an array controller, and which provides bindings such that you could hook up the controller much as you would a stand-alone controller. I'd be more inclined, though, to go for the simpler approach of just putting the view on the palette and hooking it up to a standard array controller that you bind in turn to whatever is appropriate.

And if LinePoint must be available to both applications, what is the
best way to share the class? Right now the application that uses the
palette dynamically links against the palette's framework, but doesn't
include any headers. Do I just copy the header over?

A framework would probably be best, yes. If you do need the header, then you could copy it across, although it would be better if you can to export it "properly" as part of the framework.

mmalc


_______________________________________________ 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
  • Prev by Date: Re: NSSlider in the toolbar?
  • Next by Date: Bindings are retaining my #@$%ing window controller!!
  • Previous by thread: Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings
  • Next by thread: Re: Defining Accessors in a Custom Palette for a NSArray for Cocoa Bindings
  • Index(es):
    • Date
    • Thread