[52251] branches/gsoc09-gui/MPGUI
juanger at macports.org
juanger at macports.org
Fri Jun 12 21:01:13 PDT 2009
Revision: 52251
http://trac.macports.org/changeset/52251
Author: juanger at macports.org
Date: 2009-06-12 21:01:12 -0700 (Fri, 12 Jun 2009)
Log Message:
-----------
New controller for the Table View.
Added Paths:
-----------
branches/gsoc09-gui/MPGUI/PortsTableController.h
branches/gsoc09-gui/MPGUI/PortsTableController.m
Added: branches/gsoc09-gui/MPGUI/PortsTableController.h
===================================================================
--- branches/gsoc09-gui/MPGUI/PortsTableController.h (rev 0)
+++ branches/gsoc09-gui/MPGUI/PortsTableController.h 2009-06-13 04:01:12 UTC (rev 52251)
@@ -0,0 +1,20 @@
+//
+// PortsListController.h
+// MPGUI
+//
+// Created by Juan Germán Castañeda Echevarría on 6/12/09.
+// Copyright 2009 UNAM. All rights reserved.
+//
+
+#import <Cocoa/Cocoa.h>
+#import "GUIMacPorts.h"
+
+
+ at interface PortsTableController : NSObject {
+ IBOutlet NSArrayController *ports;
+ GUIMacPorts *macports;
+}
+
+ at property GUIMacPorts *macports;
+
+ at end
Added: branches/gsoc09-gui/MPGUI/PortsTableController.m
===================================================================
--- branches/gsoc09-gui/MPGUI/PortsTableController.m (rev 0)
+++ branches/gsoc09-gui/MPGUI/PortsTableController.m 2009-06-13 04:01:12 UTC (rev 52251)
@@ -0,0 +1,26 @@
+//
+// PortsListController.m
+// MPGUI
+//
+// Created by Juan Germán Castañeda Echevarría on 6/12/09.
+// Copyright 2009 UNAM. All rights reserved.
+//
+
+#import "PortsTableController.h"
+
+
+ at implementation PortsTableController
+
+ at synthesize macports;
+
+
+- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
+ [self performSelectorInBackground:@selector(getPorts) withObject:nil];
+}
+
+- (void) getPorts {
+ macports = [GUIMacPorts new];
+ [ports performSelectorInBackground:@selector(addObjects:) withObject:[macports ports]];
+}
+
+ at end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090612/20afb45d/attachment.html>
More information about the macports-changes
mailing list