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

Re: WWDC


  • Subject: Re: WWDC
  • From: koko <email@hidden>
  • Date: Wed, 25 Apr 2012 17:43:58 -0600

On Apr 25, 2012, at 5:08 PM, Conrad Shultz wrote:

> Do you understand *why* everyone was making a big deal about your choice
> of prefix?

Absolutely I do.  In fact when I posted th ecode sample that used NS and was clued on it I went DOH!

I was using it to distinguish from corresponding CPP classes.  We have a great cross-platform method which lets us ship a Mac and Windows version at the same time.  Why?  Well we thin wrap MFC controls and use all logic from the CPP files without significant MVC concerns.  So for Mac thin wrapped code I chose to name files as NS … easy to spot in the tree … I should have used M.  I'll probably go back and grep NS to M.

Example:

CPropMonogram.cpp implements an MFC dialog for monogramming properties.

NSPropMonogram.m is a thin wrap and calls all logic in CPropMonogram.

NOTE:  Due to some cool stuff CPropMonogram.cpp, while full of MFC, compiles without #ifdef's

MPropMonogram is more correct for naming, I agree.

-koko



_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:

This email sent to email@hidden


  • Follow-Ups:
    • Re: WWDC
      • From: Graham Cox <email@hidden>
References: 
 >WWDC (From: Rick Mann <email@hidden>)
 >Re: WWDC (From: Nathan Sims <email@hidden>)
 >Re: WWDC (From: Rick Mann <email@hidden>)
 >Re: WWDC (From: Ravi Singh <email@hidden>)
 >Re: WWDC (From: Mikkel Islay <email@hidden>)
 >Re: WWDC (From: Vincent Habchi <email@hidden>)
 >Re: WWDC (From: Mikkel Islay <email@hidden>)
 >Re: WWDC (From: koko <email@hidden>)
 >Re: WWDC (From: Conrad Shultz <email@hidden>)

  • Prev by Date: Re: WWDC
  • Next by Date: Executing a very low-priority operation in iOS
  • Previous by thread: Re: WWDC
  • Next by thread: Re: WWDC
  • Index(es):
    • Date
    • Thread