Skip to content
This repository
Browse code

Update README and generator

  • Loading branch information...
commit da6b87f3ee04b97c667e158a8f483d08d2df0194 1 parent 7c3983d
Yury Korolev authored August 09, 2012
8  README.md
Source Rendered
@@ -48,8 +48,8 @@ class HelloController < UIViewController
48 48
   extend IB
49 49
 
50 50
   # define ib outlet
51  
-  outlet_accessor :title, UILabel # IBOutlet UILabel * title;
52  
-  outlet_accessor :untyped_label  # IBOutlet id untyped_label;
  51
+  outlet :title, UILabel # IBOutlet UILabel * title;
  52
+  outlet :untyped_label  # IBOutlet id untyped_label;
53 53
 
54 54
   # define ib action
55 55
   def someAction sender
@@ -95,8 +95,8 @@ class HelloController < UIViewController
95 95
   attr_accessor :data_source
96 96
 
97 97
   ## ib outlets
98  
-  outlet_accessor :scroller, UIScrollView
99  
-  outlet_accessor :btn_hello
  98
+  outlet :scroller, UIScrollView
  99
+  outlet :btn_hello
100 100
 
101 101
   def say_hello(sender)
102 102
     # TODO Implement action here
4  template/controller.erb
@@ -7,9 +7,9 @@ class <%= controller_name %> < <%= controller_type %>
7 7
   ## ib outlets
8 8
 <% options[:outlets].each do |name, type| -%>
9 9
 <% if type.empty? || type == "id" -%>
10  
-  outlet_accessor :<%= name %>
  10
+  outlet :<%= name %>
11 11
 <% else -%>
12  
-  outlet_accessor :<%= name %>, <%= type %>
  12
+  outlet :<%= name %>, <%= type %>
13 13
 <% end -%>
14 14
 <% end -%>
15 15
 <% end -%>

0 notes on commit da6b87f

Please sign in to comment.
Something went wrong with that request. Please try again.