title: Parenthesis and asterisk in Objective C
body: <p>In Objective C I know that the asterisk * works as a pointer to creating/defining/initializing a pointer to an object. </p>
  
  <p>But what about when the asterisk is inside a parenthesis?</p>
  
  <p>It is the same </p>
  
  <p>(NSString*) name;</p>
  
  <p>than</p>
  
  <p>NSString *name;</p>
  
  <p>Second question</p>
  
  <p>If I declare in the @ interface the methods without using @property way i do</p>
  
  <pre><code>  - (void) setName:(NSString*) newName;
    - (NSString*) name;
    - (void) setSupervisor:(Employee*) newSupervisor;
    - (Employee*) supervisor;
    - (void) setSalary:(int) newSalary;
    - (int) salary;
  </code></pre>
  
  <p>But if i use @property I do</p>
  
  <pre><code>   @property (nonatomic, readonly) int employeeNumber;
     @property (nonatomic, retain) NSString *name; 
     @property (nonatomic, retain) Employee *supervisor;
     @property (nonatomic, assign) int salary;
  </code></pre>
  
  <p>Why the parenthesis in NSString, int, Employee disappeared?
  Why the asterisk move from (NSString*) name;
  to
  NSString *name</p>
  
  <p>Thank you</p>
  
  <p>CL </p>