Hi,

Thanks for the help, I really appreciate it.

I still appear to be having some trouble tho.

Here is my code:

MyWindow.h
----------------
#import <Cocoa/Cocoa.h>

@interface MyWindow : NSObject <NSWindowDelegate> {

   IBOutlet NSWindow *window;
}

-(void)showWindow:(id)sender;

@property (assign) IBOutlet NSWindow *window;

@end

MyWindow.m
-------------------

#import "MyWindow.h"

@implementation MyWindow

@synthesize window;

-(void)showWindow:(id)sender {
   NSLog(@"**Window %@",window);
   [window makeKeyAndOrderFront:nil];
}

@end


Then... in my main app delegate....

- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {

 if {...condition is met....} {
        MyWindow *uni = [[MyWindow alloc] init];
        [uni showWindow:nil];
  }
}

But its still not working...

Sorry if this is pretty basic, but getting my head round objective C
is proving to be difficult.

Thanks
_______________________________________________

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 arch...@mail-archive.com

Reply via email to