- (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.
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
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
@implementation SendWindowClass
-(void)openNew
{
[ScheduleWindow makeKeyAndOrderFront:self];
}
-(IBAction)newWindow:(id)sender
{
[ScheduleWindow makeKeyAndOrderFront:self];
}
@end
@implementation controller
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
{
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
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-