• 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: How to create window in Nib
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to create window in Nib


  • Subject: Re: How to create window in Nib
  • From: "Sean McBride" <email@hidden>
  • Date: Sat, 23 Oct 2004 12:25:22 -0400

wall (email@hidden) on Thu, Oct 21, 2004 22:42 said:

> In my nib file, I have two windows, one is
>mainWindow, another is picWindow. In the mainWindow
>displayed some thumbnail pictures. I want to show a
>picture in picWindow, after clicked thumbnail in the
>mainWindow. But now, only one picWindow displayed
>after I clicked thumbnail. I want to every I clicked
>thumbnail will display in one picWindow. How can I
>create window for every I clicked thumbnail?

In the method you use to display a picWindow, you will want to create a
separate picWindowController for every picWindow you want.

Something like:

picWindowController = [[PicWindowController alloc] init];
[picWindowController showWindow:self];

picWindowController would be an NSWindowController subclass, in its -init
method do something like this:

self = [super initWithWindowNibName:@"PicWindow"];
return self;

I suspect you are only using one picWindowController now.

--
Erroneous google translation: "Do not despair! One day, we will find of
the job!"

_______________________________________________
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

References: 
 >How to create window in Nib (From: wall <email@hidden>)

  • Prev by Date: Re: [newbie] Create app as a startup item
  • Next by Date: NSAffineTransform
  • Previous by thread: How to create window in Nib
  • Next by thread: Tall Table Column Headers?
  • Index(es):
    • Date
    • Thread