osx - opening windows with different delegates -


i have situation have button in window1 of delegate1 when clicked should run method open window2 of delegate2 , other stuff:

-(void)start {         [window2 makekeyandorderfront:self];         //do other stuff window2 } 

this works if both windows have same delegate if window1 has delegate1 , window2 has delegate2? can't figure out how working

in delegate1.m have:

 delegate2 *letsstart = [[delegate2 alloc] init];  [letsstart start]; 

thanks in advance (smashing head against wall)


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -