FROM : Bus Mini
DATE : Sat Jul 08 06:26:44 2006
Thanks for you advice. Now suppose I have two windows created in nib, one is
the main window which was showed when app started, another is the one I want
it to poped up when I click a button in main window.
And the followed code was called when the button was clicked,
IBOutlet NSWindow *myWindow;
.............
[myWindow showWindows] //this doesn't work
[myWindow display] //this doesn't work either
[myWindow print:self];//this doesn't work either
[myWindow makeKeyAndOrderFront:nil];//this doesn't work either
Must I set something special?
Thanks very much.
On 7/8/06, Uli Kusterer <<email_removed>> wrote:
>
>
>
> 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
>
>
>
--
Yours sincerely
Mini Bus.
DATE : Sat Jul 08 06:26:44 2006
Thanks for you advice. Now suppose I have two windows created in nib, one is
the main window which was showed when app started, another is the one I want
it to poped up when I click a button in main window.
And the followed code was called when the button was clicked,
IBOutlet NSWindow *myWindow;
.............
[myWindow showWindows] //this doesn't work
[myWindow display] //this doesn't work either
[myWindow print:self];//this doesn't work either
[myWindow makeKeyAndOrderFront:nil];//this doesn't work either
Must I set something special?
Thanks very much.
On 7/8/06, Uli Kusterer <<email_removed>> wrote:
>
>
>
> 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
>
>
>
--
Yours sincerely
Mini Bus.
| Related mails | Author | Date |
|---|---|---|
| Bus Mini | Jul 7, 19:25 | |
| Uli Kusterer | Jul 7, 20:33 | |
| Bus Mini | Jul 8, 06:26 | |
| Uli Kusterer | Jul 8, 12:41 | |
| Bus Mini | Jul 8, 16:44 | |
| I. Savant | Jul 8, 17:33 | |
| Bus Mini | Jul 8, 17:53 | |
| Shawn Erickson | Jul 8, 18:27 | |
| Uli Kusterer | Jul 8, 21:25 | |
| Bus Mini | Jul 9, 16:33 |






Cocoa mail archive

