• 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: [newbie]How to pop a window?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [newbie]How to pop a window?


  • Subject: Re: [newbie]How to pop a window?
  • From: Uli Kusterer <email@hidden>
  • Date: Fri, 7 Jul 2006 20:33:05 +0200

Am 07.07.2006 um 19:25 schrieb Bus Mini:
I have a newbie question. I have a window created in nib, if I want when a
button is pressed, then that window can pop up like a dialog, but It is not
a dialog. It is a real windows, have the propertitys what a window should
has.(ect. can be hiden,minimize....)


Could somebody give me a help? Thanks very much.

I presume you already know most of this, but since I don't know what bit youÄre missing, I'll be exhaustive rather than concise:


Look at the AppKit docs at http://developer.apple.com (or on your hard disk in Xcode's "Help" menu). You need to be familiar with:

* NSButton (and its superclass NSControl) and the "target/action paradigm", which is how you hook up your button to your code.

* IBOutlet - which is how you can get access to your window from the object owning your NIB (i.e. your NSDocument or your application delegate)

* NSWindow - in particular the makeKeyAndOrderFront: (and maybe later orderOut:) methods.

Cheers,
-- M. Uli Kusterer
http://www.zathras.de


_______________________________________________ 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
  • Follow-Ups:
    • Re: [newbie]How to pop a window?
      • From: "Bus Mini" <email@hidden>
References: 
 >[newbie]How to pop a window? (From: "Bus Mini" <email@hidden>)

  • Prev by Date: Re: where have all the IVARS gone? (long time passing...)
  • Next by Date: Re: NSDate in a Range
  • Previous by thread: [newbie]How to pop a window?
  • Next by thread: Re: [newbie]How to pop a window?
  • Index(es):
    • Date
    • Thread