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: Sun, 7 Mar 2004 20:36:57 -0500
On Mar 7, 2004, at 6:59 PM, Allan Odgaard wrote:
On 7. Mar 2004, at 23:07, Matt Ball wrote:
bookmarksBarItem is a button, while newBookmarksBarItem is an NSView.
My naming scheme is kinda messed up, and I'm going to need to fix
that later. Basically, bookmarksBarItemTemplate is an NSView that
gets copied as newBookmarksBarItem. bookmarksBarItemTemplate contains
an NSButton, bookmarksBarItem, so newBookmarksBarItem also contains
that button. They are two separate controls.
Okay, but then, after you have copied the template, the
bookmarksBarItem would still point to the button in the template.
So try to set the values for bookmarksBarItem *before* you copy the
template.
Well, that fixes my problem with the first created copy not displaying
any changes, but none of the copies use the actions I set for them.
-- 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.