I'm observing iTunes using the NSDistributedNotificationCenter
class.
This method is called when iTunes plays a new track. The implementation is empty.
Strangely, when I have ARC enabled, there is some memory allocated every time this method observeITunes:
method gets called. Apparently, this memory is never released.
No matter how long I wait, this memory is never released.
So I found this strange and made an empty test-project, copying the relevant code there.
In the test-project there is no memory allocation visible at all (Which is correct).
Code
[[NSDistributedNotificationCenter defaultCenter] addObserver:self
selector:@selector(observeITunes:)
name:@"com.apple.iTunes.playerInfo"
object:nil];
- (void)observeITunes:(NSNotification *)notification {
// Empty method
}
Can anyone explain this phenomenon to me?
I couldn't find an answer.