Re: Custom View in Toolbar
Re: Custom View in Toolbar
- Subject: Re: Custom View in Toolbar
- From: Kyle Sluder <email@hidden>
- Date: Fri, 5 Mar 2010 13:53:43 -0800
On Fri, Mar 5, 2010 at 10:45 AM, David Blanton <email@hidden> wrote:
> I have called every possible method on the view and the controls for them to
> display. Never see anything and in fact the second time through -validate
> EXC_BAD_ACCESS is thrown.
You never need to call anything to result in display. Your involvement
with drawing extends merely to marking a dirty region; AppKit takes
care of calling all of your drawing methods. If you are trying to
force drawing, you are doing something very, very wrong.
You have a memory management bug somewhere, most likely in your
validation method. Turn on zombies, run in Instruments, and find out
where.
> So two hours later I still cannot display a custom view containing buttons
> in an NSToolbar. Something that in MFC is trivial is near impossible with
> Cocoa. The Windows guys here are laughing their ... off at my inability to
> accomplish a trivial MFC task in a Cocoa equivalent.
A poor workman blames his tools.
--Kyle Sluder
_______________________________________________
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