• 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
Why isn't sizeToFit being called?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why isn't sizeToFit being called?


  • Subject: Why isn't sizeToFit being called?
  • From: Ricky Sharp <email@hidden>
  • Date: Tue, 7 Dec 2004 17:29:18 -0600

Some of my custom widgets derive from NSControl and so I provided an implementation of sizeToFit that will do the right thing. This works out well.

The remainder of my widgets derive from NSView. But when I implement sizeToFit, it's never called from within IB.

I know that other NSView derivatives implement sizeToFit and they work a-ok in IB (e.g. NSBox).

AFAIK, there's no special protocol to implement.

Any ideas?


___________________________________________________________ Ricky A. Sharp mailto:email@hidden Instant Interactive(tm) http://www.instantinteractive.com

_______________________________________________
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


  • Follow-Ups:
    • Re: Why isn't sizeToFit being called?
      • From: Ricky Sharp <email@hidden>
  • Prev by Date: Fwd: Cocoa-dev Digest, Vol 1, Issue 365
  • Next by Date: sorting on floats
  • Previous by thread: Adding colors to NSColorPanel
  • Next by thread: Re: Why isn't sizeToFit being called?
  • Index(es):
    • Date
    • Thread