mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 16:30:41 +00:00
Make NSNetServices use formal protocol, as in 10.6. When compiling with clang, use @optional, otherwise fall back to defining an empty protocol and defining an informal protocol with the methods.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@31594 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
8a814588b3
commit
079d27f3bc
2 changed files with 31 additions and 12 deletions
|
@ -155,12 +155,12 @@ static Class concreteBrowserClass;
|
|||
}
|
||||
|
||||
|
||||
- (id) delegate
|
||||
- (id<NSNetServiceDelegate>) delegate
|
||||
{
|
||||
return _delegate;
|
||||
}
|
||||
|
||||
- (void) setDelegate: (id) delegate
|
||||
- (void) setDelegate: (id<NSNetServiceDelegate>) delegate
|
||||
{
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
@ -449,12 +449,12 @@ static Class concreteBrowserClass;
|
|||
}
|
||||
|
||||
|
||||
- (id) delegate
|
||||
- (id<NSNetServiceBrowserDelegate>) delegate
|
||||
{
|
||||
return _delegate;
|
||||
}
|
||||
|
||||
- (void) setDelegate: (id) delegate
|
||||
- (void) setDelegate: (id<NSNetServiceBrowserDelegate>) delegate
|
||||
{
|
||||
_delegate = delegate;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue