Ways in which objects can come into existence
Ways in which objects can come into existence
- Subject: Ways in which objects can come into existence
- From: Hamish Allan <email@hidden>
- Date: Thu, 31 Mar 2005 13:39:33 +0100
Hi,
I'm trying to write an InputManager extension for Safari. I have a
poseAsClass: subclass for a class named BookmarksViewController which
overrides a method called -(id)bookmarkSources and NSLog()s what is
being returned:
<CFArray 0x351860 [0xa01900e0]>{type = mutable-small, count = 6, values
= (
0 : <WebBookmarkList: 0x357d60>
1 : <WebBookmarkList: 0x3836a0>
2 : <%WebBookmarkProxy: 0x38c640>
3 : <%WebBookmarkProxy: 0x38c700>
4 : <%WebBookmarkProxy: 0x38c730>
5 : <WebBookmarkList: 0x383670>
)}
As you can see I've also posed as WebBookmarkProxy (I'm trying to write
an alternative bookmark source such as those provided by Rendezvous and
Address Book). However, none of the methods from the classdump of
WebBookmarkProxy are being called; I've also tried overriding init,
retain, alloc, allocWithZone:, copy, and copyWithZone: but none of them
seem to be getting called either.
I'm wondering in what other ways these objects could have come into
existence? WebBookmarkProxy also defines
-(id)initWithTitle:(id)group:(id) and
-(id)initFromDictionaryRepresentation:(id) withGroup:(id) but neither
of those are being called. Perhaps I'm missing something fundamental
about class posing?
Thanks,
Hamish
_______________________________________________
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