Re: How to implement an array of dicts
Re: How to implement an array of dicts
- Subject: Re: How to implement an array of dicts
- From: Jack Hayward <email@hidden>
- Date: Thu, 20 Dec 2007 16:36:25 -0800
Objective:
Write a preset manager plugin for Quartz Composer, using the settings
pane as the UI.
I have created a plugin with a series of "settings".
The first is called presetNum.
Whenever this value changes, all of the other settings in the pane
get updated with values from an array (of presets).
Question:
I created some data - dictionaries and arrays - in the "init" method.
I had to retain this data in order to get things to work.
The pointers to these datum are all instance variables.
From my reading of the docs, I should not have to retain, because
the instance variables are referring to them, and the ivars continue
to exist.
So - why did I have to retain these?
Q2:
Is there a better way to do this?
Is there some example code out there that does something like this?
It seems that I am really just building a database editor where
"presetNum" is the record index.
Code attached:
Attachment:
PresetMgrPlugIn.m
Description: Binary data
Attachment:
PresetMgrPlugIn.h
Description: Binary data
_______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden