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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to