[Mono-osx] MonoMac - binding for NSCollectionView

JohnMoshakis john at moshakis.com
Sat Jul 3 18:53:16 EDT 2010


Hi,

I was trying to create a binding for NSCollectionView and ran into a few
problems. I'm not really sure what to do.

1) The header file had AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER; at the end
of the line which seemed to confuse the conversion tool

I fixed the code manually with this one

2) - (id <NSCollectionViewDelegate>)delegate; in the header file produces 		

id <NSCollectionViewDelegate> Delegate { get; set; }

I just changed the type to NSCollectionViewDelegate

3) - (NSImage *)draggingImageForItemsAtIndexes:(NSIndexSet *)indexes
withEvent:(NSEvent *)event offset:(NSPointPointer)dragImageOffset
AVAILABLE_MAC_OS_X_VERSION_10_6_AND_LATER;

NSPointPointer seems to be a pointer to an NSPoint

4) The NSCollectionViewDelegate interface has some methods with a type
NSCollectionViewDropOperation which doesn't seem to be defined anywhere in
the cs file

In there header there is typedef NSInteger NSCollectionViewDropOperation;

Cheers,
John

-- 
View this message in context: http://mono.1490590.n4.nabble.com/MonoMac-binding-for-NSCollectionView-tp2277459p2277459.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list