• 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
Re: iChat Files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iChat Files


  • Subject: Re: iChat Files
  • From: mw <email@hidden>
  • Date: Thu, 16 Jan 2003 11:27:31 -0500

> On 1/16/03 10:22 AM, "David Remahl" <email@hidden> wrote:
>>>
>>> That would be interesting (to be able to see the Instant Message class
>>> that
>>> you speak of). Perhaps there are headers files or something that go
>>> along
>>> with iChat that are viewable to us? Or maybe there is some underground
>>> website dedicated to cracking iChat files ;-).
>>>
>>> Anybody else have ideas on this, or maybe where the information is
>>> stored
>>> online?
>>>
>>> Thanks,
>>> Mw
>>
>> There is a InstantMessage.framework which contains all that you're
>> looking for...However, it is not as simple as to link to this framework
>> and unarchive the chat files. iChat requires some setup to be made
>> first. Which is not documented...
>>
>> Play with class-dump. Use every trick in the book.
>>
>> / Regards, David
>>
>
> I found the framework you are speaking of (under in infamous PrivateFrameworks
> folder, bum bum bum!), but there are no headers or anything in there. Just
> every image that I have ever seen used in iChat, the iChat Agent, and then the
> compiled framework binary. What is a class-dump? I have never heard of that
> before. If it involves reading hexadecimal numbers, well, I have never really
> been good at that :-).
>
> This is going to be a very scary endeavor, trying to use a private Apple
> framework. Hell, it's hard enough using WebCore which is actually intended to
> be public! :-D
>
> Anyway, any information on class dumping and other methods of reading this
> kind of stuff would be most appreciated.
>
> Thanks,
> Mw

Well, I was able to class dump into an AWESOME text file with every class,
protocol, category, method, etc. in iChat. It's pretty damned awesome to
look at. So, I found a class called SavedChat, a subclass of Chat (Chat is
subclassed from NSObject). Now, there is a method in SavedChat called:

- initWithTranscriptFile:fp12;

There is also another suspicious method called:

- initWithSavedData:fp12;

Now, my guess is that the first one is the one that should be used when
loading a saved chat file. So, here is a question: how do I get these
classes into my own project? Do I simply copy and paste them in (which I
don't think would work)? Or, if I link to this framework, will all of these
classes become available to me (along with their methods, structs, data
types, etc.)?

Also, what data type is returned by the above 2 methods? Is it id? And what
is fp12? Is that some sort of data type? Remember, there isn't a colon after
fp12, so it isn't a parameter listing. Actually, every method in all of
iChat has this fp12 as a parameter type (or whatever it is). Apple even
overrode NSCoding to include the extra fp12 at the end of the required
methods. My guess is that it is something important :-). There are also fp16
and fp20 things at the end of methods that have more than one parameter.

Oh, and by the way, it IS possible to create and define C structs as return
values for ObjC functions :-).

Any help on decoding these strange data types would be most appriciated!!

Mw
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: iChat Files (From: David Remahl <email@hidden>)

  • Prev by Date: Re: Patching an application (long)
  • Next by Date: CVS multiple CVS Root on pserver
  • Previous by thread: Re: iChat Files
  • Next by thread: iPhoto Data Files
  • Index(es):
    • Date
    • Thread