diff options
| author | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-05-16 09:13:11 -0400 |
| commit | a9717bfb4fd6627d51dfc07c35f393f0a93368ff (patch) | |
| tree | e9b2eaa2c979f45a829187343676fc5efae02eff /listbox_darwin.m | |
| parent | acc4a543566550ed563887a5827735596a5d816c (diff) | |
Organized the dummyRect declarations/definitions/etc. in the Objective-C files. I think that's it for the Objective-C conversion of the Mac OS X code!
Diffstat (limited to 'listbox_darwin.m')
| -rw-r--r-- | listbox_darwin.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/listbox_darwin.m b/listbox_darwin.m index 5f3fe88..ff427fd 100644 --- a/listbox_darwin.m +++ b/listbox_darwin.m @@ -19,6 +19,8 @@ #define toNSUInteger(x) ((NSUInteger) (x)) #define fromNSUInteger(x) ((uintptr_t) (x)) +extern NSRect dummyRect; + id toListboxItem(id key, id value) { return [NSMutableDictionary dictionaryWithObject:value forKey:key]; @@ -101,7 +103,7 @@ id makeListbox(id tableColumn, BOOL multisel) NSTableView *listbox; listbox = [[NSTableView alloc] - initWithFrame:NSMakeRect(0, 0, 100, 100)]; + initWithFrame:dummyRect]; [listbox addTableColumn:tableColumn]; [listbox setAllowsMultipleSelection:multisel]; [listbox setAllowsEmptySelection:YES]; |
