Re: Window not displaying
Re: Window not displaying
- Subject: Re: Window not displaying
- From: Andrew Farmer <email@hidden>
- Date: Tue, 30 Jun 2009 23:46:32 -0700
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 initialized by a nib, but that doesn't work when you
allocate an instance manually!
As a side point, names beginning with capital letters are generally
used for classes, and names which begin with lower case are used for
everything else. Naming an instance variable "ScheduleWindow", or a
class "controller", is very likely to confuse readers of your code.
_______________________________________________
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