• 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: newbie question -views and MCV model
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: newbie question -views and MCV model


  • Subject: Re: newbie question -views and MCV model
  • From: Alexander Spohr <email@hidden>
  • Date: Fri, 15 Jan 2010 09:27:48 +0100

Am 15.01.2010 um 05:57 schrieb Martin Beroiz:

> My problem is with the controller. I subclassed NSViewController (with the name FilterBankViewController) and tried to bind the class with the file's owner. But I noticed that in IB I cannot do that, actually the bind tab says it's "Not Applicable".

You need to set the FilesOwner’s class to FilterBankViewController.
The FilesOwner is a placeholder for the object that becomes the owner of the nib-file :)

Then you alloc your FilterBankViewController and have it load the nib with itself as the owner.

See
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
of NSViewController.

	atze

_______________________________________________

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

References: 
 >newbie question -views and MCV model (From: Martin Beroiz <email@hidden>)

  • Prev by Date: Re: If Array Controller is empty, how to populate pop-up list?
  • Next by Date: Re: Core Video CIFilters/ playback / compression suggestions?
  • Previous by thread: newbie question -views and MCV model
  • Next by thread: Converting an NSAttributedString into an html string
  • Index(es):
    • Date
    • Thread