Revision: 6361
          http://skim-app.svn.sourceforge.net/skim-app/?rev=6361&view=rev
Author:   hofman
Date:     2010-03-22 12:56:40 +0000 (Mon, 22 Mar 2010)

Log Message:
-----------
create array of pref panes in one go

Modified Paths:
--------------
    trunk/SKPreferenceController.m

Modified: trunk/SKPreferenceController.m
===================================================================
--- trunk/SKPreferenceController.m      2010-03-22 12:37:46 UTC (rev 6360)
+++ trunk/SKPreferenceController.m      2010-03-22 12:56:40 UTC (rev 6361)
@@ -67,12 +67,11 @@
 
 - (id)init {
     if (self = [super initWithWindowNibName:@"PreferenceWindow"]) {
-        NSMutableArray *panes = [NSMutableArray array];
-        [panes addObject:[[[SKGeneralPreferences alloc] init] autorelease]];
-        [panes addObject:[[[SKDisplayPreferences alloc] init] autorelease]];
-        [panes addObject:[[[SKNotesPreferences alloc] init] autorelease]];
-        [panes addObject:[[[SKSyncPreferences alloc] init] autorelease]];
-        preferencePanes = [panes copy];
+        preferencePanes = [[NSArray alloc] initWithObjects:
+            [[[SKGeneralPreferences alloc] init] autorelease], 
+            [[[SKDisplayPreferences alloc] init] autorelease], 
+            [[[SKNotesPreferences alloc] init] autorelease], 
+            [[[SKSyncPreferences alloc] init] autorelease], nil];
     }
     return self;
 }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to