Skip navigation.
 
mlBeginner question - the differences between .h and .m
FROM : Alex Handley
DATE : Sun Mar 23 11:45:20 2008

Hi, I have just started learning Cocoa and I have been reading the apple
tutorials but one thing they don't really explain is what is the purpose of
a .m and .h for each class. This is probably a silly question but coming
from a java im only used to seeing one class file.

Happy Easter

Thanks
Alex


On 22/03/2008 19:02 22 Mar 2008, "<email_removed>"
<<email_removed>> wrote:

> Send Cocoa-dev mailing list submissions to
> <email_removed>
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.apple.com/mailman/listinfo/cocoa-dev
> or, via email, send a message with subject or body 'help' to
> <email_removed>
>
> You can reach the person managing the list at
> <email_removed>
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Cocoa-dev digest..."
>
>
> Today's Topics:
>
>    1. Re: Best Way To Lookup From a Huge Table (Thomas Engelmeier)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 22 Mar 2008 19:46:36 +0100
> From: Thomas Engelmeier <<email_removed>>
> Subject: Re: Best Way To Lookup From a Huge Table
> To: John Stiles <<email_removed>>
> Cc: <email_removed>
> Message-ID: <<email_removed>>
> Content-Type: text/plain; charset=WINDOWS-1252; format=flowed;
> delsp=yes
>
>
> On 21.03.2008, at 21:51, John Stiles wrote:
>

>> std::map actually does more than NSDictionary—it sorts its entries
>> instead of keeping them in random order. Also, it copies its keys
>> instead of just keeping a reference to them, which is also more work—
>> it would be a much fairer test if you used std::string* pointers for
>> your keys and values instead of std::string objects, but it'd also
>> be a little more work since you'd need a custom comparator and you'd
>> need to consider memory management (which boost smart pointers
>> apparently can manage pretty well).

>
> No need to pull in the whole boost overhead for smart(er) pointers as
> of gcc 4.0.
>
> #include <tr1/memory>
> using std::tr1::shared_ptr;
>
> And for the presorting time - TR1 includes also an unordered_map and
> unordered_set.
>
> Regards,
> Tom_E
>
>
>
> ------------------------------
>
> _______________________________________________
>
> Cocoa-dev mailing list      (<email_removed>)
>
> Do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins (at) lists.apple.com
>
> http://lists.apple.com/mailman/listinfo/cocoa-dev
>
>
> End of Cocoa-dev Digest, Vol 5, Issue 459
> *****************************************

Related mailsAuthorDate
mlBeginner question - the differences between .h and .m Alex Handley Mar 23, 11:45
mlRe: Beginner question - the differences between .h and .m Marcus Mar 23, 11:58
mlRe: Beginner question - the differences between .h and .m Alex Handley Mar 23, 14:12