Hey all,
Things are going pretty well on my little project, but I have noticed a several little warnings that it doesn't seem I can fix unless I for instance overriding alloc to do nothing.
.../CSMainDocument.m:39: warning: `CSMainWindowController' may not respond to `+alloc'
.../CSMainDocument.m:39: warning: (Messages without a matching method signature
.../CSMainDocument.m:39: warning: will be assumed to return `id' and accept
.../CSMainDocument.m:39: warning: `...' as arguments.)
.../CSMainDocument.m:42: warning: passing argument 1 of 'addWindowController:' from incompatible pointer type
All of these are related to alloc not explicitly being defined in my subclass of NSWindowController, now I don't see the point in implementing alloc and doing nothing with it.
Is it ok to just ignore the warnings, or is there a better way that I can fix them?
I'm loathed to leave them there but I also don't want add code bloat for no reason. It seems that Xcode is a little picky about this kind of thing, it also doesn't handle code completion for subclasses very well .
Thanks for any advice,
Mark.
Things are going pretty well on my little project, but I have noticed a several little warnings that it doesn't seem I can fix unless I for instance overriding alloc to do nothing.
.../CSMainDocument.m:39: warning: `CSMainWindowController' may not respond to `+alloc'
.../CSMainDocument.m:39: warning: (Messages without a matching method signature
.../CSMainDocument.m:39: warning: will be assumed to return `id' and accept
.../CSMainDocument.m:39: warning: `...' as arguments.)
.../CSMainDocument.m:42: warning: passing argument 1 of 'addWindowController:' from incompatible pointer type
All of these are related to alloc not explicitly being defined in my subclass of NSWindowController, now I don't see the point in implementing alloc and doing nothing with it.
Is it ok to just ignore the warnings, or is there a better way that I can fix them?
I'm loathed to leave them there but I also don't want add code bloat for no reason. It seems that Xcode is a little picky about this kind of thing, it also doesn't handle code completion for subclasses very well .
Thanks for any advice,
Mark.