• 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
Observing frame change of a subview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Observing frame change of a subview


  • Subject: Observing frame change of a subview
  • From: Luc Van Bogaert <email@hidden>
  • Date: Sun, 15 Apr 2012 21:42:08 +0200

Hi,

I have this custom view, that can have any number of subviews. The custom view should redraw itself whenever any of the subviews frame changes. I'm trying to find a way to do this.

I'm thinking of adding the custom view to the default notification center as observer for any frame change notifications. When such a notification comes in, I would call a method in which the view could check if the sender of the notification is indeed a subview and then act accordingly.

I suppose this would work, but I'm wondering if there is a more efficient way of doing this.
Any advice would be appreciated.

--
Luc Van Bogaert

_______________________________________________

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

  • Follow-Ups:
    • Re: Observing frame change of a subview
      • From: Kyle Sluder <email@hidden>
  • Prev by Date: Re: activating Delete menu item through binding
  • Next by Date: Re: Dictionary not returning objects
  • Previous by thread: Re: activating Delete menu item through binding
  • Next by thread: Re: Observing frame change of a subview
  • Index(es):
    • Date
    • Thread