[macruby-changes] [537] MacRuby/trunk/sample-macruby
source_changes at macosforge.org
source_changes at macosforge.org
Sat Aug 30 20:07:46 PDT 2008
Revision: 537
http://trac.macosforge.org/projects/ruby/changeset/537
Author: lsansonetti at apple.com
Date: 2008-08-30 20:07:46 -0700 (Sat, 30 Aug 2008)
Log Message:
-----------
do not use ib_outlet anymore because it's deprecated
Modified Paths:
--------------
MacRuby/trunk/sample-macruby/ABPresence/PeopleDataSource.rb
MacRuby/trunk/sample-macruby/ABPresence/ServiceWatcher.rb
MacRuby/trunk/sample-macruby/AnimatingViews/SimpleLayoutView.rb
MacRuby/trunk/sample-macruby/PagePacker/CatalogController.rb
MacRuby/trunk/sample-macruby/PagePacker/MyDocument.rb
MacRuby/trunk/sample-macruby/PagePacker/PreferenceController.rb
MacRuby/trunk/sample-macruby/PathDemo/PathDemoController.rb
MacRuby/trunk/sample-macruby/PhotocastViewer/PhotocastViewerController.rb
MacRuby/trunk/sample-macruby/ViewModelDemo/Controller.rb
MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb
Modified: MacRuby/trunk/sample-macruby/ABPresence/PeopleDataSource.rb
===================================================================
--- MacRuby/trunk/sample-macruby/ABPresence/PeopleDataSource.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/ABPresence/PeopleDataSource.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class PeopleDataSource
- ib_outlet :table, :serviceWatcher
+ attr_accessor :table, :serviceWatcher
# Initialize and register for AddressBook notifications
def awakeFromNib
Modified: MacRuby/trunk/sample-macruby/ABPresence/ServiceWatcher.rb
===================================================================
--- MacRuby/trunk/sample-macruby/ABPresence/ServiceWatcher.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/ABPresence/ServiceWatcher.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class ServiceWatcher
- ib_outlet :dataSource
+ attr_accessor :dataSource
def startMonitoring
nCenter = IMService.notificationCenter
Modified: MacRuby/trunk/sample-macruby/AnimatingViews/SimpleLayoutView.rb
===================================================================
--- MacRuby/trunk/sample-macruby/AnimatingViews/SimpleLayoutView.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/AnimatingViews/SimpleLayoutView.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class SimpleLayoutView < NSView
- ib_outlet :boxColorField
+ attr_accessor :boxColorField
# Default separation between items, and default size of added subviews
SEPARATION = 10.0
Modified: MacRuby/trunk/sample-macruby/PagePacker/CatalogController.rb
===================================================================
--- MacRuby/trunk/sample-macruby/PagePacker/CatalogController.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/PagePacker/CatalogController.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,5 +1,5 @@
class CatalogController < NSWindowController
- ib_outlet :pdfView, :pageSlider, :pageField
+ attr_accessor :pdfView, :pageSlider, :pageField
attr_reader :currentPageIndex
Modified: MacRuby/trunk/sample-macruby/PagePacker/MyDocument.rb
===================================================================
--- MacRuby/trunk/sample-macruby/PagePacker/MyDocument.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/PagePacker/MyDocument.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,5 +1,5 @@
class MyDocument < NSDocument
- ib_outlet :packerView
+ attr_accessor :packerView
def init
super
Modified: MacRuby/trunk/sample-macruby/PagePacker/PreferenceController.rb
===================================================================
--- MacRuby/trunk/sample-macruby/PagePacker/PreferenceController.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/PagePacker/PreferenceController.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -5,7 +5,7 @@
class PreferenceController < NSWindowController
- ib_outlet :paperPopUp, :textFontField
+ attr_accessor :paperPopUp, :textFontField
attr_reader :textFont
Modified: MacRuby/trunk/sample-macruby/PathDemo/PathDemoController.rb
===================================================================
--- MacRuby/trunk/sample-macruby/PathDemo/PathDemoController.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/PathDemo/PathDemoController.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class PathDemoController
- ib_outlet :button, :popup, :window, :demoView
+ attr_accessor :button, :popup, :window, :demoView
def awakeFromNib
@popup.removeAllItems
Modified: MacRuby/trunk/sample-macruby/PhotocastViewer/PhotocastViewerController.rb
===================================================================
--- MacRuby/trunk/sample-macruby/PhotocastViewer/PhotocastViewerController.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/PhotocastViewer/PhotocastViewerController.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class PhotocastViewerController < NSWindowController
- ib_outlet :imageBrowserView
+ attr_accessor :imageBrowserView
def awakeFromNib
@cache = []
Modified: MacRuby/trunk/sample-macruby/ViewModelDemo/Controller.rb
===================================================================
--- MacRuby/trunk/sample-macruby/ViewModelDemo/Controller.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/ViewModelDemo/Controller.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,6 +1,6 @@
class Controller
- ib_outlet :mySuperview, :numberText, :speedText, :numberSlider, :speedSlider
+ attr_accessor :mySuperview, :numberText, :speedText, :numberSlider, :speedSlider
def init
super
Modified: MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb
===================================================================
--- MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb 2008-08-31 02:58:28 UTC (rev 536)
+++ MacRuby/trunk/sample-macruby/ViewModelDemo/Superview.rb 2008-08-31 03:07:46 UTC (rev 537)
@@ -1,10 +1,8 @@
class MySuperview < NSView
- ib_outlet :controller, :shadowSwitch, :moveToTopSwitch
+ attr_accessor :controller, :shadowSwitch, :moveToTopSwitch
- attr_reader :shadowSwitch, :moveToTopSwitch
-
def initWithFrame(frame)
super
return self
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macruby-changes/attachments/20080830/f7b9fd84/attachment-0001.html
More information about the macruby-changes
mailing list