Changes between Version 3 and Version 4 of CocoaBridge


Ignore:
Timestamp:
Oct 13, 2007, 2:41:08 AM (13 years ago)
Author:
rme
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • CocoaBridge

    v3 v4  
    6161  `(when (#/lockFocusIfCanDraw ,view)
    6262     ,@forms
    63      (#/unlockFocus ,view)))
     63     (#/unlockFocus ,view)
     64     (#/flushWindow (#/window ,view))))
    6465}}}
     66
     67The `flushWindow` makes sure that your immediate drawing
     68will get displayed.
    6569
    6670Now, you can draw.  Notice that `show-red-view` returns a view instance.
     
    7579}}}
    7680
     81Note that if the view is ever told to redisplay itself, your drawing
     82will be wiped out. You need to arrange for your drawing routines
     83to be called from the view's `drawRect:` method in order
     84for it to be "permanent."
     85
     86
     87