• 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
Bindings : how to do the relation between a tab(View) index, and the rest of MVC.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Bindings : how to do the relation between a tab(View) index, and the rest of MVC.


  • Subject: Bindings : how to do the relation between a tab(View) index, and the rest of MVC.
  • From: Francis Derive <email@hidden>
  • Date: Tue, 5 Jun 2007 17:43:03 +0200

Try again :

The Nib File's Owner is an NSWindowController instance with
- an NSArray *boxes;
I don't know if I should add an
- unsigned int boxIndex
because there is a 3 tabs NSTabView in the window NSPanel, and if I have an NSArrayController to bind its selection with the File's Owner "boxes" key - I don't know how to tell that
- if tab 0 is selected then I am referring to box 0 of File's Owner boxes
- if tab 1 is selected then I am referring to box 1 of File's Owner boxes
- ...


I made it with having 3 independent boxes
- NSArray *box0;
- NSArray *box1;
- NSArray *box2;
instead of NSArray *boxes - where I know "which is which" - but, I would like to know from the gurus if there is a better solution which takes account of the knowledge ( tabs |--> boxes ).
The consequence is - for example - that only one "add" button is enough to know where "it" adds ( boxes at 0, boxes at 1 or boxes at 2 ) - according to the selected tab ( instead of box0, or box1, or box2 ). In the case of 3 independant boxes, I need 3 "add" buttons ...


Hope so much,

Francis
_______________________________________________

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


  • Prev by Date: Re: [CoreData] Background Insertion
  • Next by Date: Re: [CoreData] Background Insertion
  • Previous by thread: Java menu disappear, when NSOpenPanel is opened
  • Next by thread: OT: WWDC eTicket
  • Index(es):
    • Date
    • Thread