[vlc-devel] commit: macosx: compilation fix for the 10.4u SDK and removal of a hack ( Felix Paul Kühne )
git version control
git at videolan.org
Sat Aug 23 23:35:30 CEST 2008
vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sat Aug 23 23:37:21 2008 +0200| [20e0e10972176a97a348f56b51e3b998715bff3e] | committer: Felix Paul Kühne
macosx: compilation fix for the 10.4u SDK and removal of a hack
Note that all NS*Integer types were introduced on 10.5 only. They can tollfree bridged with the respective plain ints. They are undocumented anyway...
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=20e0e10972176a97a348f56b51e3b998715bff3e
---
modules/gui/macosx/embeddedwindow.h | 2 +-
modules/gui/macosx/intf.h | 6 ------
modules/gui/macosx/intf.m | 8 ++++----
modules/gui/macosx/playlist.m | 2 +-
modules/gui/macosx/simple_prefs.h | 4 ++--
modules/gui/macosx/simple_prefs.m | 4 ++--
6 files changed, 10 insertions(+), 16 deletions(-)
diff --git a/modules/gui/macosx/embeddedwindow.h b/modules/gui/macosx/embeddedwindow.h
index f451b51..ead8618 100644
--- a/modules/gui/macosx/embeddedwindow.h
+++ b/modules/gui/macosx/embeddedwindow.h
@@ -53,7 +53,7 @@
BOOL b_window_is_invisible;
NSSize videoRatio;
- NSInteger originalLevel;
+ int originalLevel;
}
- (void)controlTintChanged;
diff --git a/modules/gui/macosx/intf.h b/modules/gui/macosx/intf.h
index ded1405..ed999e2 100644
--- a/modules/gui/macosx/intf.h
+++ b/modules/gui/macosx/intf.h
@@ -37,12 +37,6 @@
#include <Cocoa/Cocoa.h>
-/* this was introduced in Darwin 9. We need to declare it to prevent both
- * compilation warnings and errors */
-#ifndef NSInteger
-#define NSInteger int
-#endif
-
/*****************************************************************************
* Local prototypes.
*****************************************************************************/
diff --git a/modules/gui/macosx/intf.m b/modules/gui/macosx/intf.m
index 7274687..256f6a2 100644
--- a/modules/gui/macosx/intf.m
+++ b/modules/gui/macosx/intf.m
@@ -2124,10 +2124,10 @@ end:
NSDirectoryEnumerator *direnum = [[NSFileManager defaultManager] enumeratorAtPath:crashReporter];
NSString *fname;
NSString * latestLog = nil;
- NSInteger year = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportYear"] : 0;
- NSInteger month = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportMonth"]: 0;
- NSInteger day = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportDay"] : 0;
- NSInteger hours = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportHours"]: 0;
+ int year = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportYear"] : 0;
+ int month = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportMonth"]: 0;
+ int day = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportDay"] : 0;
+ int hours = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportHours"]: 0;
while (fname = [direnum nextObject])
{
diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index 4ae9696..5dad423 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1221,7 +1221,7 @@
pt = [o_outline_view convertPoint: [o_event locationInWindow]
fromView: nil];
- NSInteger row = [o_outline_view rowAtPoint:pt];
+ int row = [o_outline_view rowAtPoint:pt];
if( row != -1 )
[o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO];
diff --git a/modules/gui/macosx/simple_prefs.h b/modules/gui/macosx/simple_prefs.h
index 20c0918..60539e0 100644
--- a/modules/gui/macosx/simple_prefs.h
+++ b/modules/gui/macosx/simple_prefs.h
@@ -202,8 +202,8 @@
/* hotkeys */
- (IBAction)hotkeySettingChanged:(id)sender;
- (void)showHotkeySettings;
-- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView;
-- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex;
+- (int)numberOfRowsInTableView:(NSTableView *)aTableView;
+- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex;
- (BOOL)changeHotkeyTo: (int)i_theNewKey;
@end
diff --git a/modules/gui/macosx/simple_prefs.m b/modules/gui/macosx/simple_prefs.m
index d6f1a6e..5052f24 100644
--- a/modules/gui/macosx/simple_prefs.m
+++ b/modules/gui/macosx/simple_prefs.m
@@ -1193,12 +1193,12 @@ static inline void save_module_list( intf_thread_t * p_intf, id object, const ch
[self showSettingsForCategory: o_hotkeys_view];
}
-- (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView
+- (int)numberOfRowsInTableView:(NSTableView *)aTableView
{
return [o_hotkeySettings count];
}
-- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex
+- (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex
{
if( [[aTableColumn identifier] isEqualToString: @"action"] )
return [o_hotkeyDescriptions objectAtIndex: rowIndex];
More information about the vlc-devel
mailing list