NSSavePanel default name and prepareSavePanel:
NSSavePanel default name and prepareSavePanel:
- Subject: NSSavePanel default name and prepareSavePanel:
- From: Tomas Franzén <email@hidden>
- Date: Mon, 11 Sep 2006 18:45:25 +0200
Hi,
I'm trying to change the default name for my document as displayed in
save panels. I noticed that there's no official way to do this with
an existing save panel instance (in prepareSavePanel:). I found this
message [1], which suggests setting the string value of the private
text field _nameField. That doesn't seem to work anymore. It does
work if I do the same with some delay
(performSelector:withObject:afterDelay:), but it looks dorky, and
it's such a horrible hack that I'm reluctant to use it.
Does anyone know of a better way to accomplish this?
Thanks!
Tomas Franzén
Lighthead Software
http://www.lightheadsw.com/
[1] http://www.cocoabuilder.com/archive/message/cocoa/2005/12/13/152466
_______________________________________________
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