Mac Help Forums


Reply
Thread Tools Display Modes

packages / namespaces

 
New Member
Join Date: Apr 2007
Posts: 2
 
      22nd March 2008
Hi All,

I'm from a Java background and I wanted to know if there's any concept of packages or namespaces in Objective-C?

I'm working on a personal project and I want to sort my classes in their proper areas (controllers, models, etc).

~gautam
 
Reply With Quote
 
 
 
 
Senior Member
Kaveman's Avatar
Join Date: Nov 2010
Location: Westland, NZ
Posts: 1,360
 
      12th June 2011
It is convention to prefix your Classes with a 2 Character code to protect from Namespace clashes, so don't use one of Apples i.e. NS.

I also append "Controller" to my controller classes.
I keep my model classes in there own Group. (This is like a subfolder).
 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NSXMLDocument namespaces Gernot Schlegl Programmer Help 1 20th August 2008 09:28 AM
Cocoa Web Services - Namespaces (m:) Jason8 Programmer Help 0 7th July 2008 08:19 PM
.deb packages D.M. Procida UK Macs 1 24th July 2005 10:30 AM
CVS and packages Can't spell Programmer Tools 0 20th January 2004 12:57 PM


All times are GMT +1. The time now is 09:56 PM.
Mac-Help.com is an independent website and is not affiliated with Apple Inc.


Welcome!
Welcome to the Mac Help Forums
 


Latest Threads
Yikes! Teacher needs help!
Mollyc4627 (59 Minutes Ago, 08:57 PM)

Unable to log in to websites
AMonty20 (4 Hours Ago, 05:52 PM)

Add Different Speech Commands
bae_22 (5 Hours Ago, 04:40 PM)

Login (2 macs) passwords spontaniously changed?
Roger Vaught (6 Hours Ago, 03:31 PM)

Best car charger or inverter for Macbook Pro?
imeme87 (6 Hours Ago, 03:22 PM)

 


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51