I have a simple app with window and a button in it. I want to
programmatically change the appearance of the button and its position
within the window. I used exactly the following code:
but there is a problem with "erasing" the button from its old
position within the window. The button shows up at its new location
with its new attributes exactly as I want but old button picture
remains in the window. The only way to make it go away was to hide
window/app and unhide.
Also, I was able to make it work programmatically by changing the
last line to [window display].
Why is this happening? Shouldn't -displayIfNeeded have worked? In
the docs, Apple actually advises against using -display and sticking
with -displayIfNeeded.
Also, is that the right way to do what I was trying to? I couldn't
think of anything more elegant but I'd love to hear if there is a
better approach.
Cheers,
-- ivan
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden