I want to see EXACTLY how it creates an array. How can I view the .m files that show how it's done?
Actually as a discourse marker Spoken English: Actually is often used in speaking as a discourse marker. We use it to indicate a new topic of conversation or a change or contrast in what is being talked about. We also use actually to give more detail about a topic.
"What do you do" is a way to ask someone what their job is or what they do for a living. It is a polite question to ask when you first meet someone, or when you are getting to know someone new, or when you haven't seen someone for a long time.
Actually is an adverb that means "really."
1 : in act or in fact : really trying to find out what actually happened won't actually arrive for an hour. 2 : in point of fact —used to suggest something unexpected was surprised to learn that she could actually speak German.
As @Ken mentioned, you can't see the source (although you can disassemble the method via gdb).
The method itself creates an immutable (can't be changed), autoreleased copy of the given array. The following are identical in behavior:
// Both resulting arrays are immutable and won't be retained
NSArray* immutableArray = [[[NSArray alloc] initWithArray:mutableArray] autorelease];
NSArray* immutableArray = [NSArray arrayWithArray:mutableArray];
NSArray* immutableArray = [[mutableArray copy] autorelease];
Pick whichever one you like based on brevity, I guess :-).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With