On May 11, 2009, at 4:20 PM, jon wrote:
        bookMarkurlString = [c decodeObjectForKey:@"bookMarkurlString"];
        bookMarkTitle = [c decodeObjectForKey:@"bookMarkTitle"];

You need to retain these. The doc for decodeObjectForKey: says "Decodes and returns an autoreleased Objective-C object..."

In general, when you have an invalid object reference, it's very likely you have a memory management bug.

Don't forget to release them in your dealloc method.

--Andy


_______________________________________________

Cocoa-dev mailing list ([email protected])

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

This email sent to [email protected]

Reply via email to