Re: readonly IBOutlet autosynthesized property new warning
Re: readonly IBOutlet autosynthesized property new warning
- Subject: Re: readonly IBOutlet autosynthesized property new warning
- From: Roland King <email@hidden>
- Date: Thu, 31 Jan 2013 21:42:23 +0800
On 31 Jan, 2013, at 6:13 PM, Roland King < email@hidden> wrote: On 31 Jan, 2013, at 2:08 PM, Joar Wingfors < email@hidden> wrote: Hi Roland,
I haven't seen that issue before. That's a bit of a surprise to me.
In any case, you may not know that you don't have to have the property in the header if IB is the only one needing it. Your solution in this case may be to just remove the readonly declaration from the header.
Joar
I do need them, these are the UILabels and UIOtherThings which need to be updated as the model object for which my UIView subclass is the view, changes. And sometimes I also need them not just internally in the class itself, but I need to export them readonly so other people can use them. A good use case for that is one of the ones which had this warning, a UITableViewCell subclass which loads the UI from a NIB, and exports some of the UI elements loaded as readonly properties so that the table view data source can configure them in cellForRowAtIndexPath:.
This should be pretty easy to distill down, if I can come up with a decent short project showing this I'll file it.
Thanks
A little verbose but hopefully clear. |
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden