• 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: UIWebView IBOutlet is always nil
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIWebView IBOutlet is always nil


  • Subject: Re: UIWebView IBOutlet is always nil
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 10 May 2013 07:34:10 -0500

On 5 May 2013, at 6:47 PM, Michael Crawford <email@hidden> wrote:

>   @property (retain,nonatomic) IBOutlet UIWebView *webView;
...
>   @synthesize webView;
...
>       NSLog( @"%@", webView );

I've seen this before, but only in the case where there was no @synthesize; did your actual code use it?

In recent compilers, if the getter and setter for a property are generated without @synthesize, the backing variable would be named _webView. When I ran into the bug, the coder had defined a global of the same name, which masked the error from the compiler.

But my experiment shows that if you use @synthesize, the backing ivar is named without the underscore. If your production code is as you show, I'm not helping you here.

	— F



--
Fritz Anderson
Xcode 4 Unleashed: 4.5 supplement for free!
http://www.informit.com/store/xcode-4-unleashed-9780672333279


_______________________________________________

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: UIWebView IBOutlet is always nil
      • From: Michael Crawford <email@hidden>
References: 
 >UIWebView IBOutlet is always nil (From: Michael Crawford <email@hidden>)

  • Prev by Date: Re: What am I looking for in the documentation?
  • Next by Date: Re: NSPersistentDocument Migration with Sandbox
  • Previous by thread: UIWebView IBOutlet is always nil
  • Next by thread: Re: UIWebView IBOutlet is always nil
  • Index(es):
    • Date
    • Thread