• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSObject Category
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSObject Category


  • Subject: NSObject Category
  • From: Marco Maniscalco <email@hidden>
  • Date: Sun, 21 Aug 2005 15:08:48 +0200

Hello Guys,

I'm curious if I am allowed to extend NSObject!? I have some leaks which are not easy to track (network-related).
So my idea is to extend NSObject's -(id)init; method to keep track if (and when) an object of specific type ist beeing deallocated.
I'm getting 10 (SIGBUS) if I NSLog() status to console. If there is no MSLog() the error occurs. Any ideas?


@implementation NSObject(Observer)

- (id)init
{
if(self != nil)
NSLog(@"observed init: %@", [self description]); return self;
}


@end

Greets, Marco Maniscalco
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSObject Category
      • From: Marco Maniscalco <email@hidden>
    • Re: NSObject Category
      • From: j o a r <email@hidden>
    • Re: [SOLVED] NSObject Category
      • From: Marco Maniscalco <email@hidden>
  • Prev by Date: Setting minimum font size in webview
  • Next by Date: Re: [SOLVED] NSObject Category
  • Previous by thread: Setting minimum font size in webview
  • Next by thread: Re: [SOLVED] NSObject Category
  • Index(es):
    • Date
    • Thread