[futurebasic] Re: [FB] Replacement for PMSessionPrintDialog()?

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : October 2010 : Group Archive : Group : All Groups

From: Brian S <fblistserve@...>
Date: Sat, 23 Oct 2010 21:22:10 -0700
On Oct 23, 2010, at 2:38 PM, Robert Purves wrote:

> 
> Brian S wrote:
> 
>> Robert Purves wrote:
>> 
>>> PMSessionPrintDialog() is not deprecated in the 10.6 headers. 
>>> It is 32-bit only, like all Carbon UI- and event-related functions (64-bit Carbon code cannot have a UI).
>>> There seems no special reason to avoid PMSessionPrintDialog(), unless you want to write a Cocoa replacement.
>> 
>> Thanks Robert. Although not deprecated in the 10.6 headers, Xcode 3.2.4 documentation for PMSessionPrintDialog() clearly marks all items as “legacy” and the “important” note marks it as “obsolete” ( see screen print below )
> 
> 
> My point is that there's nothing special about PMSessionPrintDialog(). Your app probably uses 

> CreateWindowFromNib()…
> HIViews…
> RunApplicationEventLoop()...
> ...and so on...
> 
> Because you can't avoid all these, there's no special merit in avoiding PMSessionPrintDialog().


Good point. My current project is to discard all the UI ( i.e. anything Carbon nib, all HIView and any Carbon events  ) and replace with Cocoa Nibs while retaining all the C functions that process the data. My reason for picking on PMSessionPrintDialog() is because it is the only call in that AppThings.c function that is “obsolete”. I’m was/am trying to avoid replacing that function too. 


Brian S