• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Window not displaying
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Window not displaying


  • Subject: Re: Window not displaying
  • From: Alexander Spohr <email@hidden>
  • Date: Wed, 1 Jul 2009 10:56:27 +0200


- (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.

How can i manually initialize it?


On 7/1/09 12:16 PM, "Andrew Farmer" <email@hidden> wrote:

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


References: 
 >Re: Window not displaying (From: rethish <email@hidden>)

  • Prev by Date: Re: Drawing the background of a single row in NSTableView
  • Next by Date: Why Applespell.service fail to launch?
  • Previous by thread: Re: Window not displaying
  • Next by thread: Why Applespell.service fail to launch?
  • Index(es):
    • Date
    • Thread