• 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
CustomView and nib file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CustomView and nib file


  • Subject: CustomView and nib file
  • From: Jacques <email@hidden>
  • Date: Sun, 28 Sep 2003 18:15:33 +0200

Hi folks,

After reading the mailing lists archives, I don't interstood how to use
nib file to put custom view in a window.

I have an NSView on my main window (in MainNib file). In an other nib
file, I have a NSView (with controls) and I would like to replace the
empty NSView (in the main window) by the loaded one.

In the main controller I have an outlet (NSView *theEmptyView).

In the second nib file, file's owner is NSView, and I have an outlet to
connect my NSView.

I can read the nib file :

if(![NSBundle loadNibNamed:@"myCustomView" owner:self])
{
NSLog(@"Failed to load nib file");
NSBeep();
}

But, I don't interstand what to do next to display the custonView in
insteed of theEmptyView.

Thanks in advance for your help,

Jacques

--
PRETRE : personne que tout le monde appelle " Phre " , sauf ses enfants qui
l'appellent " mon oncle " .
P. Desproges
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Prev by Date: Re: "/" character in application bundle identifier
  • Next by Date: Beta Testers Needed
  • Previous by thread: Watching Files???
  • Next by thread: Re: CustomView and nib file
  • Index(es):
    • Date
    • Thread