>> OK - I misunderstood what Quincey was saying.
>> 
>> The passed-in delegate and selector are nil, but I obviously can’t be sure 
>> that they will always be nil.
>> 
>> All I’m actually trying to do is to clean up some objects that need to exist 
>> during the print operation. Is this the best way for me to be doing that?
> 
> I'm not an expert in this part of Cocoa.  Are there implicit system *callers* 
> of this method, or is it more of a system *utility* that you're expected to 
> call from your own code?  If it's the latter, then maybe instead of 
> overriding it you should just provide a different method that calls it, doing 
> whatever set up you need first and then passing in the appropriate delegate 
> and selector to do cleanup.

It’s just an application method, which overrides the method that the system 
calls from printDocument when a user chooses Print.

Jeremy


_______________________________________________

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

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

Reply via email to