FROM : j o a r
DATE : Sat Nov 30 19:11:47 2002
On Saturday, Nov 30, 2002, at 18:24 Europe/Stockholm, Uwe Schlosser
wrote:
> My question is, is this the only way to work around such a problem.
No, of course not! There's never just one way to do something... :)
I would have placed the toolbar delegate in the window controller, if
you have such a one - but regardless of the position you shouldn't be
limited by where you have access to the instance variable. You should
of course use an accessor method! Something like this:
[[myDoc window] setToolbar: toolbar];
j o a r
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
DATE : Sat Nov 30 19:11:47 2002
On Saturday, Nov 30, 2002, at 18:24 Europe/Stockholm, Uwe Schlosser
wrote:
> My question is, is this the only way to work around such a problem.
No, of course not! There's never just one way to do something... :)
I would have placed the toolbar delegate in the window controller, if
you have such a one - but regardless of the position you shouldn't be
limited by where you have access to the instance variable. You should
of course use an accessor method! Something like this:
[[myDoc window] setToolbar: toolbar];
j o a r
_______________________________________________
cocoa-dev mailing list | <email_removed>
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
| Related mails | Author | Date |
|---|---|---|
| Uwe Schlosser | Nov 30, 18:24 | |
| j o a r | Nov 30, 19:11 | |
| Fritz Anderson | Nov 30, 19:47 |






Cocoa mail archive

