Why is there no * in front of delegate declaration ?
Posted
by gotye
on Stack Overflow
See other posts from Stack Overflow
or by gotye
Published on 2010-03-20T13:28:14Z
Indexed on
2010/03/20
13:31 UTC
Read the original article
Hit count: 317
Hey guys,
I just noticed there is no * in front of the declaration for a delegate ...
I did something like this :
@protocol NavBarHiddenDelegate;
@interface AsyncImageView : UIView {
NSURLConnection* connection;
NSMutableData* data;
UIActivityIndicatorView *indicator;
id <NavBarHiddenDelegate> delegate;
}
@property (nonatomic, assign) id <NavBarHiddenDelegate> delegate;
- (id)initWithUrl:(NSString*)url;
@end
@protocol NavBarHiddenDelegate
- (void)hideNavBar;
@end
It works perfectly well but as I am used to always but a * in front of objects I declare, why not for this one ?!?
Thank you,
Gotye.
© Stack Overflow or respective owner