If we write the following code:
ExplorerAppDelegate * appDelegate = (ExplorerAppDelegate *)[[UIApplication sharedApplication] delegate];
This makes a reference to the original delegate pointer, but:
- Does it increase the reference count?
- Do we have to explicitly call as
[ExplorerAppDelegate retain]
right after, or not at all? - What's happening, exactly?
After we've used this, we should also do a [ExplorerAppDelegate release]
in the dealloc method, right?