Re: Window not displaying

2009-07-01 Thread Alexander Spohr
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification { SendWindowClass *obj =[[SendWindowClass alloc] init]; Is init loading the nib? [obj openNew]; } Am 01.07.2009 um 10:37 schrieb rethish: ScheduleWindow is an outlet of NSWindow. And it is initialized by nib.

Re: Window not displaying

2009-07-01 Thread rethish
ScheduleWindow is an outlet of NSWindow. And it is initialized by nib. How can i manually initialize it? On 7/1/09 12:16 PM, "Andrew Farmer" wrote: > On 30 Jun 2009, at 22:28, rethish wrote: >> @implementation SendWindowClass >> >> -(void)openNew >> { >> [ScheduleWindow makeKeyAndOrderFr

Re: Window not displaying

2009-06-30 Thread Andrew Farmer
On 30 Jun 2009, at 22:28, rethish wrote: @implementation SendWindowClass -(void)openNew { [ScheduleWindow makeKeyAndOrderFront:self]; } What is ScheduleWindow, and how is it allocated? The code you've provided here never initializes a window - I'm assuming that it's sometimes initiali

Re: Window not displaying

2009-06-30 Thread rethish
@implementation SendWindowClass -(void)openNew { [ScheduleWindow makeKeyAndOrderFront:self]; } -(IBAction)newWindow:(id)sender { [ScheduleWindow makeKeyAndOrderFront:self]; } @end @implementation controller - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

Re: Window not displaying

2009-06-30 Thread Nick Zitzmann
On Jun 30, 2009, at 6:13 AM, rethish wrote: When I use the makeKeyAndOrderFront: method in a action method of a NSButton , new window is displayed. But I used the same method in a void function and when its called ,the window is not displayed. Why is it so? Are you sure the window object h

Window not displaying

2009-06-30 Thread rethish
Hi, When I use the makeKeyAndOrderFront: method in a action method of a NSButton , new window is displayed. But I used the same method in a void function and when its called ,the window is not displayed. Why is it so? Thank you in advance. ___ Cocoa-