[futurebasic] Re: [FB] GetPort deprecated in OS X 10.4

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 2007 : Group Archive : Group : All Groups

From: Brian Stevens <bstevens33@...>
Date: Sat, 12 May 2007 20:02:02 -0700
On May 12, 2007, at 7:40 PM, Brian Stevens wrote:

> A check of Xcode docs and Apple's web site does not reveal (other  
> than a general note to use Quartz 2D) which call(s) should be  
> substituted to avoid this deprecated call. Any clues appreciated.  
> BTW: my objective is to create a direct replacement for FB's window  
> output and its window function cousins.  FB runtime uses GetPort   
> ( and SetPortWindowPort -- but it is not deprecated )
>
  A week away from code and I'm brain dead (I know, so what's new....)

The WindowRef is available via the window list and matching it to the  
ID stored in the window property is relatively easy (stored there  
when the window was created from the nib).  SetPortWindowPort uses  
the WindowRef. Stupid me.  There is probably more to this as I work  
through the details.  Please chime in with alternatives.

Brian S.