0

How do i fix the following code

return [(NSNetwork*)CFDictionaryGetValue( _networkMap, address) retain];

fixed to

return [(NSNetwork*)CFDictionaryGetValue( _networkMap, (__bridge const void *)address)];

Its says expected identifier.I am unable to figure out. Can u guys help me plz?

user2798258
  • 171
  • 1
  • 4
  • 13
  • Just remove square brackets - you need them only if you're going to invoke a method. – kovpas Mar 03 '14 at 09:20
  • As @kovpas says `return (NSNetwork*)CFDictionaryGetValue( _networkMap, (__bridge const void *)address);` – sbarow Mar 03 '14 at 09:24

1 Answers1

2

Just change your return statement to this:

return (NSNetwork*)CFDictionaryGetValue( _networkMap, (__bridge const void *)address);

Hope this helps.. :)

Rashad
  • 11,057
  • 4
  • 45
  • 73