From: <ho...@us...> - 2010-11-26 16:53:16
|
Revision: 6891 http://skim-app.svn.sourceforge.net/skim-app/?rev=6891&view=rev Author: hofman Date: 2010-11-26 16:53:10 +0000 (Fri, 26 Nov 2010) Log Message: ----------- only call awakeFromNib on super when it's supported, apparently 10.5.8 does not always have it Modified Paths: -------------- trunk/SKFindTableView.m trunk/SKNoteOutlineView.m trunk/SKThumbnailTableView.m Modified: trunk/SKFindTableView.m =================================================================== --- trunk/SKFindTableView.m 2010-11-26 13:00:48 UTC (rev 6890) +++ trunk/SKFindTableView.m 2010-11-26 16:53:10 UTC (rev 6891) @@ -43,7 +43,8 @@ @implementation SKFindTableView - (void)awakeFromNib { - [super awakeFromNib]; + if ([[SKFindTableView superclass] instancesRespondToSelector:_cmd]) + [super awakeFromNib]; [[[self tableColumnWithIdentifier:PAGE_COLUMNID] headerCell] setTitle:NSLocalizedString(@"Page", @"Table header title")]; } Modified: trunk/SKNoteOutlineView.m =================================================================== --- trunk/SKNoteOutlineView.m 2010-11-26 13:00:48 UTC (rev 6890) +++ trunk/SKNoteOutlineView.m 2010-11-26 16:53:10 UTC (rev 6891) @@ -50,7 +50,8 @@ @implementation SKNoteOutlineView - (void)awakeFromNib { - [super awakeFromNib]; + if ([[SKNoteOutlineView superclass] instancesRespondToSelector:_cmd]) + [super awakeFromNib]; [[self tableColumnWithIdentifier:COLOR_COLUMNID] setDataCell:[[[SKColorCell alloc] init] autorelease]]; [[[self tableColumnWithIdentifier:NOTE_COLUMNID] headerCell] setTitle:NSLocalizedString(@"Note", @"Table header title")]; Modified: trunk/SKThumbnailTableView.m =================================================================== --- trunk/SKThumbnailTableView.m 2010-11-26 13:00:48 UTC (rev 6890) +++ trunk/SKThumbnailTableView.m 2010-11-26 16:53:10 UTC (rev 6891) @@ -137,7 +137,8 @@ } - (void)awakeFromNib { - [super awakeFromNib]; + if ([[SKThumbnailTableView superclass] instancesRespondToSelector:_cmd]) + [super awakeFromNib]; NSScroller *scroller = [[self enclosingScrollView] verticalScroller]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(handleScrollerWillScroll:) name:SKScrollerWillScrollNotification object:scroller]; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |