• 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
how to share class between controller and data source
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

how to share class between controller and data source


  • Subject: how to share class between controller and data source
  • From: William Irving Zumwalt <email@hidden>
  • Date: Wed, 15 Feb 2006 19:39:00 -0600

Hey all, very new to cocoa, question on the best way or what's good
practice on how to handle this.

I have an object in a controller (it's a node class for an
NSOutlineView) that is used by actions within a controller file. But I
also need to let this same object be shared from methods in a separate
file (the data source). But the node object is declared in the
controller header.

Is it common to put the actions in the data source instead of the
controller? Is there a better way to do this?

Any help much appreciated.
 _______________________________________________
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: warning: C++ constructors and destructors
  • Next by Date: Re: Cross-platform?
  • Previous by thread: Re: [NSTableView selectedRow] is always 0?
  • Next by thread: NSPopupButton & Captured Display
  • Index(es):
    • Date
    • Thread