Custom NSView as IB Palette - isFlipped strangeness
Custom NSView as IB Palette - isFlipped strangeness
- Subject: Custom NSView as IB Palette - isFlipped strangeness
- From: dan pahlajani <email@hidden>
- Date: Wed, 18 May 2005 14:23:45 -0700
Hello Everyone,
I have created an Cocoa IB palette that is a subclass of NSView. This
custom control (view) is also a container (like NSBox).
Everything seems to work fine except when I drop another view or a
control by dragging from the IB palette on to my custom view, the
dropped control / view is not drawn exactly where I drop it but
instead is offset downwards by about 30 or 40 pixels. Also, I can't
resize the view that is added (the contained view).
I am returning YES from isFlipped method since I want to use top/right
coordinates to draw. If I return NO I do not have the problem
described above, that is the dropped controls or views is drawn
exactly where I drop it and I can resize them as well.
I would appreciate all the help I can get.
Best Regards,
Dan P.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden