return FALSE for loadDataRepresentation (NSDocument)
return FALSE for loadDataRepresentation (NSDocument)
- Subject: return FALSE for loadDataRepresentation (NSDocument)
- From: Eric Blom <email@hidden>
- Date: Fri, 4 Apr 2003 12:15:42 -0800
My document based application loads text files that have a complex
format (Intel Hex File). When attempting to load the file I check the
formatting to ensure that the data is good. If I find a serious error I
return FALSE for my loadDataRepresentation. When this happens I get a
window that says the following.
Open
Can't open file "/path/to/file/filename".
OK
My question is, how can I add a string to this window to give the user
feedback on why the file can not be loaded/opened?
Thanks,
Eric
-----------------------------------------------------------------
Eric D. Blom
email@hidden
Be at war with your vices, at peace with your neighbors, and let
every New Year find you a better man. --Benjamin Franklin
-----------------------------------------------------------------
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.