• 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
Re: superview
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: superview


  • Subject: Re: superview
  • From: Conrad Shultz <email@hidden>
  • Date: Mon, 09 May 2011 16:27:42 -0700

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

(Putting this back on list for anyone else who is interested; see
additional exchange below.)

As for completing your understanding, this is presumably handled by
private API calls that shouldn't concern you.  (If you really want a
hint as to what might be going on under the hood, grep UIView.h for
'Controller'.)

But in summary: the frameworks are designed to enforce good design and
coding habits, and if you find yourself fighting against them then odds
are you should reconsider your design.

- --
Conrad Shultz

Synthetiq Solutions
www.synthetiqsolutions.com


On 5/9/11 3:25 AM, Nelson Hazeltine wrote:
> The only reason to know is to complete my understanding.  It is just
> a dangling thread.
>
> Thanks for your help.
>
> Regards,
>
> Nelson Hazeltine email@hidden (W) 803-7499629 (M)
> 803-315-9092
>
> On May 8, 2011, at 11:33 PM, Conrad Shultz wrote:
>
>> The question here is: why do you need to know? That is an
>> implementation detail internal to UIView/UIViewController. UIView's
>> implementation of the various UIResponder methods should be enough
>> to cover your needs.
>>
>> If your design requires UIView to interrogate its UIViewController
>> something is probably wrong. That violates the core MVC design
>> pattern; it is the controller's job to setup/configure/tear down
>> its views, and the views' job to draw themselves and play their
>> part in the responder chain.
>>
>> -- Conrad Shultz Synthetiq Solutions www.synthetiqsolutions.com
>>
>> On May 8, 2011, at 19:49, Nelson Hazeltine <email@hidden>
>> wrote:
>>
>>> You answered the right question.
>>>
>>> Please help me understand.
>>>
>>> How does UIView object point to the UIViewController object?
>>> There is no property for it.
>>>
>>> Regards,
>>>
>>> Nelson Hazeltine email@hidden (W) 803-7499629 (M)
>>> 803-315-9092
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iD8DBQFNyHhuaOlrz5+0JdURAh9+AJ96JrbXCXAnX5nGIAY+n9yG+cEJIQCaAlXx
Rf296uw+Ug+uH7VjTcGftd8=
=hAn3
-----END PGP SIGNATURE-----
_______________________________________________

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

References: 
 >superview (From: Nelson Hazeltine <email@hidden>)
 >Re: superview (From: Kyle Sluder <email@hidden>)
 >Re: superview (From: Conrad Shultz <email@hidden>)

  • Prev by Date: [ANN] NanoStore 2.0 is now available
  • Next by Date: setState has no effect on an NSButton
  • Previous by thread: Re: superview
  • Next by thread: what should I understand from kAudioQueueProperty_CurrentLevelMeterDB
  • Index(es):
    • Date
    • Thread