Re: Reading/Writing Data From NSTableView
Re: Reading/Writing Data From NSTableView
- Subject: Re: Reading/Writing Data From NSTableView
- From: "Kirt Cathey" <email@hidden>
- Date: Sat, 29 Jan 2005 07:12:06 +0000
On Jan 28, 2005, at 10:30 PM, Kirt Cathey wrote:
I managed to get data to display on an NSTableView with bindings or by
calling all the proper methods as outlined in many tutorials. However, I
need to write the contents to a text file when the user presses a 'save'
button within the same view.
Is there not a quick way of doing this? Would really like to know how to do
this with bindings, but without have to go through the encoder/decoder
process.
Bindings has nothing to do with data archival. You still have to write the
appropriate code, typically ensuring that your model objects conform to the
NSCoding protocol etc., see
<http://developer.apple.com/documentation/Cocoa/Conceptual/Archiving/
index.html>
mmalc
Probably should not have to go through archiving just to pull a single
value/line from a table and write it to a text file. Or, pull the whole
data set and write to a text file. 'write the proper code' doesn't really
help very much (:-) since I am looking for at least a coding hint by
posting to this list.
--Kirt
From the desk of ..........
Barking Frog
email: email@hidden
_________________________________________________________________
MSN Hotmailで開運メルアド占い実施中
http://promotion.msn.co.jp/hotmail/fortune/input_un.asp
_______________________________________________
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