• 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: Why resizing doesn't work for me ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why resizing doesn't work for me ?


  • Subject: Re: Why resizing doesn't work for me ?
  • From: kubernan <email@hidden>
  • Date: Tue, 4 Dec 2001 21:39:47 +0100

Nope.... it's not due to the lack of return of the init method.
I tried with and without..same pb. :-(


Le mardi 4 dicembre 2001, ` 09:22 PM, Edward Moy a icrit :

On Tuesday, December 4, 2001, at 01:20 AM, kubernan wrote:

Hello,

Because i had no response, i repost the same question : i don't find solution.

If i display more than one instance of the same window and call a resize function in my program,
the second window is resizing instead of the first one.

------ Create.m ---------
- (id)init {

self = [super init];

if (![NSBundle loadNibNamed:@"CreateWindow" owner:self]) {
NSLog(@"Can't launch : CreateWindow.nib");
[self release];
}

}

Sorry if I only caught the tail end of this discussion, but if this is your entire init method, then perhaps the problem is as simple as not returning self:

------ Create.m ---------
- (id)init {

self = [super init];

if (![NSBundle loadNibNamed:@"CreateWindow" owner:self]) {
NSLog(@"Can't launch : CreateWindow.nib");
[self release];
return(nil);
}
return(self);
}
--------------------------------------------------------------------------
Edward Moy
Apple Computer, Inc.
email@hidden

(This message is from me as a reader of this list, and not a statement
from Apple.)


References: 
 >Re: Why resizing doesn't work for me ? (From: Edward Moy <email@hidden>)

  • Prev by Date: Re: Why resizing doesn't work for me ?
  • Next by Date: Re: JavaBridge
  • Previous by thread: Re: Why resizing doesn't work for me ?
  • Next by thread: Re: Why resizing doesn't work for me ?
  • Index(es):
    • Date
    • Thread