• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Custom NSView as IB Palette - isFlipped strangeness
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: [OT] [Moderator] Leaving Apple..
  • Next by Date: Can't Choose Build Styles
  • Previous by thread: Re: [OT] [Moderator] Leaving Apple..
  • Next by thread: Can't Choose Build Styles
  • Index(es):
    • Date
    • Thread