Changeset 20e0e10972176a97a348f56b51e3b998715bff3e
- Timestamp:
- 23/08/08 23:37:42
(3 months ago)
- Author:
- Felix Paul Kühne <fkuehne@videolan.org>
- git-committer:
- Felix Paul Kühne <fkuehne@videolan.org> 1219527462 +0200
- git-parent:
[a673ad77028bf87d1ff0f936fa959f6d816882b1]
- git-author:
- Felix Paul Kühne <fkuehne@videolan.org> 1219527441 +0200
- Message:
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...
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r75c8bbc |
r20e0e10 |
|
| 54 | 54 | |
|---|
| 55 | 55 | NSSize videoRatio; |
|---|
| 56 | | NSInteger originalLevel; |
|---|
| | 56 | int originalLevel; |
|---|
| 57 | 57 | } |
|---|
| 58 | 58 | |
|---|
| r55de54d |
r20e0e10 |
|
| 37 | 37 | |
|---|
| 38 | 38 | #include <Cocoa/Cocoa.h> |
|---|
| 39 | | |
|---|
| 40 | | /* this was introduced in Darwin 9. We need to declare it to prevent both |
|---|
| 41 | | * compilation warnings and errors */ |
|---|
| 42 | | #ifndef NSInteger |
|---|
| 43 | | #define NSInteger int |
|---|
| 44 | | #endif |
|---|
| 45 | 39 | |
|---|
| 46 | 40 | /***************************************************************************** |
|---|
| rb37eec6 |
r20e0e10 |
|
| 2125 | 2125 | NSString *fname; |
|---|
| 2126 | 2126 | NSString * latestLog = nil; |
|---|
| 2127 | | NSInteger year = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportYear"] : 0; |
|---|
| 2128 | | NSInteger month = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportMonth"]: 0; |
|---|
| 2129 | | NSInteger day = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportDay"] : 0; |
|---|
| 2130 | | NSInteger hours = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportHours"]: 0; |
|---|
| | 2127 | int year = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportYear"] : 0; |
|---|
| | 2128 | int month = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportMonth"]: 0; |
|---|
| | 2129 | int day = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportDay"] : 0; |
|---|
| | 2130 | int hours = !previouslySeen ? [[NSUserDefaults standardUserDefaults] integerForKey:@"LatestCrashReportHours"]: 0; |
|---|
| 2131 | 2131 | |
|---|
| 2132 | 2132 | while (fname = [direnum nextObject]) |
|---|
| r9667973 |
r20e0e10 |
|
| 1222 | 1222 | pt = [o_outline_view convertPoint: [o_event locationInWindow] |
|---|
| 1223 | 1223 | fromView: nil]; |
|---|
| 1224 | | NSInteger row = [o_outline_view rowAtPoint:pt]; |
|---|
| | 1224 | int row = [o_outline_view rowAtPoint:pt]; |
|---|
| 1225 | 1225 | if( row != -1 ) |
|---|
| 1226 | 1226 | [o_outline_view selectRowIndexes:[NSIndexSet indexSetWithIndex:row] byExtendingSelection:NO]; |
|---|
| ra251a03 |
r20e0e10 |
|
| 203 | 203 | - (IBAction)hotkeySettingChanged:(id)sender; |
|---|
| 204 | 204 | - (void)showHotkeySettings; |
|---|
| 205 | | - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView; |
|---|
| 206 | | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex; |
|---|
| | 205 | - (int)numberOfRowsInTableView:(NSTableView *)aTableView; |
|---|
| | 206 | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex; |
|---|
| 207 | 207 | - (BOOL)changeHotkeyTo: (int)i_theNewKey; |
|---|
| 208 | 208 | |
|---|
| r6932d8c |
r20e0e10 |
|
| 1194 | 1194 | } |
|---|
| 1195 | 1195 | |
|---|
| 1196 | | - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView |
|---|
| | 1196 | - (int)numberOfRowsInTableView:(NSTableView *)aTableView |
|---|
| 1197 | 1197 | { |
|---|
| 1198 | 1198 | return [o_hotkeySettings count]; |
|---|
| 1199 | 1199 | } |
|---|
| 1200 | 1200 | |
|---|
| 1201 | | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(NSInteger)rowIndex |
|---|
| | 1201 | - (id)tableView:(NSTableView *)aTableView objectValueForTableColumn:(NSTableColumn *)aTableColumn row:(int)rowIndex |
|---|
| 1202 | 1202 | { |
|---|
| 1203 | 1203 | if( [[aTableColumn identifier] isEqualToString: @"action"] ) |
|---|