• 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: Unable to launch about panel for the 2nd time
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Unable to launch about panel for the 2nd time


  • Subject: Re: Unable to launch about panel for the 2nd time
  • From: Jason Coco <email@hidden>
  • Date: Tue, 23 Sep 2008 23:33:29 -0400


On Sep 23, 2008, at 02:58 , Arun wrote:

Hi All,

I am a newbie to cocoa programming.
I have written a small program in which i will be loading a Custom About
panel from another nib.
This launching of the panel works well only for the first time.
If i close the panel and try to launch for the 2nd time, it is unable to
show the panel.
Can anyone let me know what is wrong in the code?


Attaching the code along with this mail.

Another thing that you may want to look into is NSWindowController... especially in this simple case, I think it's a better choice than
your own subclass of NSObject. For just this simple about panel, you probably wouldn't even need to subclass it. To use it, just
create it with your window nib and in your window nib make file's owner an instance of NSWindowController or (if you decide to
subclass it) an instance of your subclass.


You can read more about NSWindowController at: http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSWindowController_Class/Reference/Reference.html

Jason

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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: 
 >Unable to launch about panel for the 2nd time (From: Arun <email@hidden>)

  • Prev by Date: Re: Converting from Carbon Event Manager to NSTimer
  • Next by Date: CALayers inside NSSplitView (clipping issue)
  • Previous by thread: Re: Unable to launch about panel for the 2nd time
  • Next by thread: Unable to launch about panel for the 2nd time
  • Index(es):
    • Date
    • Thread