On Sep 20, 2011, at 6:00 PM, douglas welton wrote:

> I'm not sure that my solution is any "less messy" than what you have 
> suggested, but... when faced with this same situation, I gave the save panel 
> a different title each time it was invoked. When the panel object was passed 
> to my delegate, I could tell where the panel was being used by the title of 
> the inbound object.  No need for subclasses or additional retains.



You could use Obj-C associated objects for the same effect with your own 
property instead of reusing title.


Another simple way of solving the original problem is to have an instance 
variable for the sheet and use a comparison to distinguish them in the delegate 
methods. 



--
Seth Willits
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to