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 PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> Send Cocoa-dev mailing list submissions to
> cocoa-dev@lists.apple.com
> 
> 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 PROTECTED]
> 
> You can reach the person managing the list at
> [EMAIL PROTECTED]
> 
> 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 PROTECTED]>
> Subject: Re: Best Way To Lookup From a Huge Table
> To: John Stiles <[EMAIL PROTECTED]>
> Cc: cocoa-dev@lists.apple.com
> Message-ID: <[EMAIL PROTECTED]>
> 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      (Cocoa-dev@lists.apple.com)
> 
> 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
> *****************************************


_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to