Re: Using NSView as a template
Re: Using NSView as a template
- Subject: Re: Using NSView as a template
- From: Matt Ball <email@hidden>
- Date: Mon, 8 Mar 2004 17:10:38 -0500
On Mar 8, 2004, at 12:53 AM, Ryan Bates wrote:
On Mar 7, 2004, at 6:34 PM, Matt Ball wrote:
Yes, I have instantiated it in Interface Builder. I can't set it as
the window delegate, however, because that is already set to
MyDocument, which is the main class for that window.
Try: [bookmarksBarItem setTarget:self];
The object does not need to be in the responder chain if the target is
specified.
(It seems some e-mails were not sent to this list, so I may be missing
something. What class is bookmarksBarItem anyway?)
Ryan
Didn't work. I think what is happening is that NSArchiver is
disregarding the action that is set for the button. If i setAction
before I NSArchive, it disregards it. If I set it after, it affects the
template only, and is disregarded next time I duplicate the template.
Is there any other way of using an NSView as a template that might be
better suited?
-- Matt Ball
_______________________________________________
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.