Re: NSAlert strategy advice
Re: NSAlert strategy advice
- Subject: Re: NSAlert strategy advice
- From: Darkshadow <email@hidden>
- Date: Sat, 18 Dec 2004 04:35:13 -0500
I tend to just set an action for the OK/Cancel buttons, and set the
didEnd method to nil. You can call orderOut: on the window and
endSheet:returnCode: as usual, but also do whatever it is you were
calling the sheet for in that method. You can use the same methods for
different sheets, just set a tag to your different buttons and test for
the tags in the method.
Darkshadow (aka Michael Nickerson)
On Dec 17, 2004, at 8:22 PM, Henry Maddocks wrote:
My current app has quite a few occasions when it needs to show a sheet
to the user. It seems for each of these sheets I need to implement a
sheet did end function which is getting to be a bit laborious and
strikes me as being a maintenance nightmare. Does anyone have any
ideas for ways this boiler plate stuff can be reduced?
Henry
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden