How are structs passed to Objective-C methods?
How are structs passed to Objective-C methods?
- Subject: How are structs passed to Objective-C methods?
- From: Rick Mann <email@hidden>
- Date: Fri, 02 Nov 2012 21:26:05 -0700
In my (OS X) app, as part of debugging another issue, I noticed that the debugger is showing a struct parameter type as a reference, even though it is declared plain. In the little test case app I built to help, the same struct is passed by value.
In both cases, it's a parameter to a property setter on an NSManagedObject subclass. But in one, LLDB shows it as "Rect&" when stopped inside the setter, and in the other, it shows it as "Rect".
In both cases, it seems to work correctly.
--
Rick
_______________________________________________
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