how to return strings
how to return strings
- Subject: how to return strings
- From: daniel oberhoff <email@hidden>
- Date: Sun, 13 Apr 2003 12:08:25 +0200
hi folks!
I am having trouble returning NSStrings from my table datasource in
response to the tables request for object values. i generate the string
on the fly, so i thought autorelease would make sense, but it crashes.
so do using retain (which is prinsipally wrong anyhow) and doing
nothing about it (just creating and returning th string). all crash
after a while, sometimes on the first request, sometimes on the second
or any other time.
what is the prescribed method for this kind of stuff? do i really have
to create a new autoreleaspool in place everytime i return the string?
i mean, its just a couple of calls like per minute or so, but still,
afaik making an autorelease pool is quite an expensive operation, so
i'd like to find another way. if not i'll have to cahce the strings
internally which is kinda awkward...
daniel
_______________________________________________
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.