• 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: Prevent Asynchronous operation of beginSheetModalForWindow
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Prevent Asynchronous operation of beginSheetModalForWindow


  • Subject: Re: Prevent Asynchronous operation of beginSheetModalForWindow
  • From: "John Love" <email@hidden>
  • Date: Thu, 26 Jun 2008 10:19:22 -0400

Graham,

Still pouring over your thesis .. in process, so let me ask just one thing
at a time, rather than chew here on the whole thing.

(1) learning about anonymous type = (id) .. I make this call within FC:

[iboCalculateSheetCtrl showSheetOnParentWindow:itsWindow
                               withDescription:nil
                               delegate:self
                               contextInfo:sCalculateSheetID];

The delegate here is FileController*, where the delegate received within
SC's showSheetOnParentWindow looks like:

- (void) showSheetOnParentWindow:(NSWindow*)parentWindow
                                 withDescription:(NSString*)theDescription
                                 delegate:(id)theTarget
                                 contextInfo:(void*)contextInfo {

    mFileSheetDelegate = theTarget;

    // etc.

}

and at the very top:

@implementation CalculateSheetController

id *mFileSheetDelegate;

Within the implementation of showSheetOnParentWindow, I get "assignment from
incompatible pointer type" with:

mFileSheetDelegate = theTarget;

and later on within this SC's implementation:

- (void) sheetDidEnd:(NSWindow*)sheet
                     returnCode:(int)returnCode
                     contextInfo:(void*)contextInfo {
    [mFileSheetDelegate doSheetSelection:sheet returnCode:returnCode
contextInfo:contextInfo];
}

I get: "warning:invalid receiver type 'id'" and

"no matching doSheetSelection:returnCode:contextInfo".

Based on the "invalid .." warning, I understand "no matching ..".

By the way my FC has the formal doSheetSelection:returnCode:contextInfo
selector or method .. one final thing on this item, I do not really
understand "informal protocols", so I have not yet tried to implement such.

John
_______________________________________________

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

  • Follow-Ups:
    • Re: Prevent Asynchronous operation of beginSheetModalForWindow
      • From: Graham Cox <email@hidden>
    • Re: Prevent Asynchronous operation of beginSheetModalForWindow
      • From: Nathan Kinsinger <email@hidden>
References: 
 >Prevent Asynchronous operation of beginSheetModalForWindow (From: "John Love" <email@hidden>)
 >Re: Prevent Asynchronous operation of beginSheetModalForWindow (From: Graham Cox <email@hidden>)
 >Re: Prevent Asynchronous operation of beginSheetModalForWindow (From: "John Love" <email@hidden>)
 >Re: Prevent Asynchronous operation of beginSheetModalForWindow (From: Graham Cox <email@hidden>)
 >Re: Prevent Asynchronous operation of beginSheetModalForWindow (From: "John Love" <email@hidden>)
 >Re: Prevent Asynchronous operation of beginSheetModalForWindow (From: "John Love" <email@hidden>)

  • Prev by Date: Re: Is it possible for several NSURLConnection instances to share one delegate?
  • Next by Date: Re: Adding a new type of NSButton
  • Previous by thread: Re: Prevent Asynchronous operation of beginSheetModalForWindow
  • Next by thread: Re: Prevent Asynchronous operation of beginSheetModalForWindow
  • Index(es):
    • Date
    • Thread