• 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: nib loading / displaying question.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: nib loading / displaying question.


  • Subject: Re: nib loading / displaying question.
  • From: Rob Rix <email@hidden>
  • Date: Sun, 14 Dec 2008 02:53:36 -0500

It sounds like you’re looking for [aboutPanel makeKeyAndOrderFront: self];.

Rob

On 14-Dec-08, at 2:38 AM, aaron smith wrote:

hey all, really quick question. I'm messing around with loading nib's
from the main bundle.

It's pretty basic.

-I've got a custom nib called "About" that shows when you select the
"About XXX" from the main menu.
-I have an AppController file (extends NSObject), that has an action
-(IBAction)showAboutPanel:(id)sender

I've got it functioning for the most part, It load's the nib, and
shows it. But then after it's been closed, it won't ever show up
again.

Here's my method:

-(IBAction)showAboutPanel:(id)sender
{
	NSLog(@"showAboutPanel");
	if(aboutPanel)
	{
		NSLog(@"about panel set %@",aboutPanel);
		//how do i show it again?
	}
	if(!aboutPanel)
	{
		[NSBundle loadNibNamed:@"About" owner:self];
		NSLog(@"about panel %@",aboutPanel);
	}
}

I've read quite a bit about nibs and bundles, and I've tried a bunch
of different things, can't seem to figure this one out. Any ideas
would be great.

thanks.
_______________________________________________

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

_______________________________________________

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


  • Follow-Ups:
    • Re: nib loading / displaying question.
      • From: "aaron smith" <email@hidden>
References: 
 >nib loading / displaying question. (From: "aaron smith" <email@hidden>)

  • Prev by Date: nib loading / displaying question.
  • Next by Date: Re: nib loading / displaying question.
  • Previous by thread: nib loading / displaying question.
  • Next by thread: Re: nib loading / displaying question.
  • Index(es):
    • Date
    • Thread