• 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: Programatically Setting Delegate
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Programatically Setting Delegate


  • Subject: Re: Programatically Setting Delegate
  • From: Alexander Spohr <email@hidden>
  • Date: Sat, 5 Dec 2009 12:45:38 +0100

http://lmgtfy.com/?q=error+request+for+member+is+something+not+a+structure+of+union

	atze


Am 05.12.2009 um 09:12 schrieb Chunk 1978:

> i have a UIViewController that i'm setting as the delegate for my
> custom UIImageView class.  from my custom UIImageView class i want the
> delegate to change it's background color (based on computations
> performed within the UIImageView class).
>
> in my UIViewController i write:
> –––––
> myUIImageViewClass.classDelegate = self;
> –––––
>
> then in my custome UIImageViewClass i synthisize the accessor method
> for the classDelegate, which is of type id. then from within the code
> i try to change the background color of it's delegate with this:
> –––––
> [[classDelegate view] setBackgroundColor:[UIColor greenColor]];
> –––––
>
> if i write it like classDelegate.view.backgroundColor = ... then i
> receive and error saying "error request for member is something not a
> structure of union"

_______________________________________________

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: Programatically Setting Delegate
      • From: Chunk 1978 <email@hidden>
References: 
 >Programatically Setting Delegate (From: Chunk 1978 <email@hidden>)

  • Prev by Date: Programatically Setting Delegate
  • Next by Date: Re: NSTextView & Horizontal Scrollbar bug
  • Previous by thread: Programatically Setting Delegate
  • Next by thread: Re: Programatically Setting Delegate
  • Index(es):
    • Date
    • Thread