Frage

Something quite strange is happening in my IKImageBrowserView subclass:

I'm trying to print the size of intercellSpacing and cellSize respectively.

CBDebug(@"intercellSpacing %@", NSStringFromSize([self intercellSpacing]));
CBDebug(@"cellSize %@", NSStringFromSize([self cellSize]));

The second line is absolutely fine but the first one doesn't compile:

Incompatible type for argument 1 of 'NSStringFromSize'.

However the two functions are returning the same type:

- (NSSize)intercellSpacing
- (NSSize)cellSize

The SDK used in xCode are 10.6. What am I doing wrong ?

thanks

War es hilfreich?

Lösung

Make sure your deployment target is set to 10.6.

With that setting set to any earlier version, you can't use anything that didn't exist yet on 10.6, which is when -[IKImageBrowserView intercellSpacing] was introduced.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top