RE: question on refreshing parameter data between instances.
site_archiver@lists.apple.com Delivered-To: pro-apps-dev@lists.apple.com Thread-index: AcomoIdLal1iXiRzQcy/Pk8GY8XbHADytvPw Thanks for the example. I am getting some results I really do not understand. I created a class (UISaveRestore) that implements the NSCoding protocol. I use this class to save a single string from several lists in our UI such as the font the user selected (I don't save the entire list). Here is my code from addParamaters UISaveRestore *uiSaveRestore = [[[UISaveRestore alloc] init] autorelease]; [uiSaveRestore setType:SR_FONTLIST]; [_apiParam addCustomParameterWithName: [_bundle localizedStringForKey: @ DATE_FONT value:nil table: @"InfoPlist"] parmId: ID_FONTLIST defaultValue: uiSaveRestore parmFlags: kFxParameterFlag_CUSTOM_UI]; The custom view just has a single pop up I fill with the font list // here we initialize the font dropdown with the list of fonts (once) NSPopUpButton *fontListDisplay = [_fontListView viewWithTag: UIT_FONTLIST]; if (_fInitFontList) { [fontListDisplay addItemsWithTitles:_arrayFonts]; _fInitFontList = false; } I am experiencing the following problems: 1) I do not get parameter changed messages when I change the selection in my custom parameter font list. 2) I am getting a couple initWithCoder/encodeWithCoder messages for objs I have not created. And when these objects are created my init method is not called. Nor is my dealloc method called for these objs. I don't understand why this is happening, or to be more precise why these objects are being created in the first place. 3) When I save the project there is no serialization/encodeWithcoder call for the UISaveRestore obj I explicitly create when I am adding my custom parameter. There is a serialization call for an obj I didn't create. 4) My explicitly created obj never receives a dealloc message. Thanks, Jay _______________________________________________ Do not post admin requests to the list. They will be ignored. Pro-apps-dev mailing list (Pro-apps-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/pro-apps-dev/site_archiver%40lists.ap... This email sent to site_archiver@lists.apple.com
participants (1)
-
Jay Boyer