• 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: [pyobjc] Custom sheet and didEndSelector
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [pyobjc] Custom sheet and didEndSelector


  • Subject: Re: [pyobjc] Custom sheet and didEndSelector
  • From: Gorazd Krosl <email@hidden>
  • Date: Tue, 27 Jan 2009 12:40:08 -0800 (PST)

From: Domenico Testa <email@hidden>
Subject: [pyobjc] Custom sheet and didEndSelector
To: Cocoa development mailing list <email@hidden>
Message-ID:
    <email@hidden>
Content-Type: text/plain; charset=UTF-8

> I want to show a custom sheet asking user for a choice depending on the
> button clicked.
>
> That's my code:
>
snip
>
>     @IBAction
>     def confirmSignOperation(self, sender):
>         NSApp.endSheet_returnCode_(self.window(), NSOKButton)
>
>     @IBAction
>     def abortSignOperation(self, sender):
>         NSApp.endSheet_returnCode_(self.window(), NSCancelButton)
>
> When i click on dismiss button (bound to abortSignOperation action) or on OK
> button (bound on confirmSignOperation action) i obtain a BAD ACCESS
> EXCEPTION.
>
> --
> Domenico Testa
> http://del.icio.us/domtes
>
>
> ------------------------------

Hi Domenico,
I think you should pass a sheet in NSApp.endSheet_returnCode_ not document window (self.window).

HTH,
Gorazd


      __________________________________________________________________
Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! Canada Messenger at http://ca.beta.messenger.yahoo.com/
_______________________________________________

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

  • Prev by Date: Re: How to catch and log EXC_BAD_ACCESS?
  • Next by Date: Re: Animation, NSProgressIndicator and Bindings
  • Previous by thread: [pyobjc] Custom sheet and didEndSelector
  • Next by thread: [Q] disposing of a stream object when NSStreamEventEndEncounterered is received?
  • Index(es):
    • Date
    • Thread