Instantiate custom NSWindow
Instantiate custom NSWindow
- Subject: Instantiate custom NSWindow
- From: "Jere Gmail" <email@hidden>
- Date: Mon, 24 Sep 2007 20:10:07 +0200
Well..as you can guess I'm having some problems adapting from C++ to
Cocoa environment.
My problem now is I have a window and had created a custom class for
this window (DataWindow).
Now in the application controller I have this:
#include "DataWindow.h"
so I can instantiate this class.
But if I write this
NSWindow *r=[DataWindow new];
[NSApp beginSheet:r modalForWindow:window modalDelegate:self
didEndSelector:nil contextInfo:NULL];
[NSApp runModalForWindow:r];
all that I obtain is an empty window.
What I'm doing wrong?
--
http://zon7blog.blogspot.com/
And again we fall.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden