carbon-dev Mailing List http://lists.apple.com/archives/carbon-dev/2009/Nov/index.html carbon-dev Mailing List Sat, 07 Nov 2009 13:00:01 +0000 Dual monitors http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00026.html Reply to list

I have never used a dual monitor system but a user of my software told  
me that my program is only shown on the primary monitor on his mac  
with dual monitors. Do I need to do anything special to get the  
program to run on dual monitors or doesn't OS X just take care of this  
for me? [...]
]]>
Re: Simulating button press (i.e, for return) http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00025.html Reply to list
[...]

Brilliant -- thanks!  (can't believe I forgot that!)

... I gotta convert this code to Quartz!!!

Stephen

 
]]>
Re: Simulating button press (i.e, for return) http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00024.html Reply to list
[...]

HiliteControl functions, but windows are double-buffered on Mac OS X, so you need to flush the window buffer to the screen in order to see the button hilite. Add a call to QDFlushPortBuffer after each call to HiliteControl.

-eric
 
]]>
Simulating button press (i.e, for return) http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00023.html Reply to list

Title: Simulating button press (i.e, for return) 



Hi everyone, 

Had some legacy code that simulated a button press when the user typed return in a text field.  Wanted to make sure the button was highligted long enough to be seen (the window doesn't go away). [...]
]]>
Re: How to write application uploading OS/App to the USB device http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00022.html Reply to list
[...]

You should go to email@hidden.

 
]]>
Canceling asynchronous loading of Movies http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00021.html Reply to list
    I am loading a movie asynchronously, with "NewMovieFromDataRef, " and then   checking occasionally, with "GetMovieLoadState". If I want to cancel the  loading of that Movie and try loading another, what is the correct procedure?                     Charles  		 	   		    Hotmail: Trusted email with powerful SPAM protection. Sign up now.
     
]]>
changing the process name http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00020.html Reply to list

Dear All,  
  I'm not sure if this is the right place to ask this question...  
In our framework, applications are launched by passing in a python 
script to a command-line "launcher". This startup script is responsible 
for setting up the user interface, including menu, main window and so 
on. [...]
]]>
How can I get information of network disconnection http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00019.html Reply to list
Hello All,   

     

 I am working on client server application. When I unplug the
network cable for server, application running on server should know that its
network is disconnected.   

 Is there any way I can receive signal in my code on server
side, which will tell me that network is disconnected?   

     

 Thanks and Regards,   

 Rahul   

     



 DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. 



     
]]>
solved: fail to launch due to improper linking :) http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00018.html Reply to list

the problem was easily corrected by dragging in the iconv lib from the  
SDK instead of from the OS (apple: it's a bug that your tools don't do  
that when i set them to "deployment 10.4") 

 and sorry this was an xcode question (originally posted to carbon-dev)   [...]
]]>
fail to launch due to improper linking :( http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00017.html Reply to list

I'm building on 10.6
base SDK is 10.5 (cuz i want to optionally use some new APIs)
deployment target is 10.4  
 but when i run on a 10.4 system, it fails to launch due to this:  
 libiconv.2.dylib
app requires version 7.0.0 or later but current version is 5.0. [...]
]]>
How to write application uploading OS/App to the USB device http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00016.html Reply to list
Title: How to write application uploading OS/App to the USB device 



Hello, 

I am going to write application which upload OS/App to the barcode scanner (USB). I have already created framework to connect device and Mac OS X. 
I am new to write such an application and have no idea where I should start. 

The application need to send barcode scanner’s application or OS to the barcode scanner, and need to install them on the device.  

Anyone please let me know any sample code or documentation that I can refer?  “iSync” is something I can use? 

Thank you. 



  
]]>
Re: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00015.html Reply to list

[...]

As I wrote, covering the desktop with a window of your own making at  
the desktop window level is probably a better choice, because you  
don't have to save and restore the user's desktop picture, and you  
still get to cover a complex desktop picture. [...]
]]>
Re: SketchUp custom colors appears to have broken Carbon color functions. Workaround? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00014.html Reply to list

Here is an interesting wrinkle to all of this...if, for example, one
builds the JustPP sample application with the 10.4 SDK, it won't crash.  Build it with the 10.5 or 10.6 SDK and it will crash.          On Nov 4, 2009, at 1:08 PM, Eric Gorr wrote:  > quoted text [...]
]]>
SketchUp custom colors appears to have broken Carbon color functions. Workaround? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00013.html Reply to list

This is a weird one...    A screen capture can be found at:  http://ericgorr.net/cocoadev/ColorProcedure.m4v.zip  The full source for the simple JustCocoa app can be found at:  http://ericgorr.net/cocoadev/JustCocoa.zip  The full source for a JustPP app can be found at:  http://ericgorr. [...]
]]>
In FSUnmountVolumeAsync callback process dissenter pid is always zero http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00012.html Reply to list

Hi all,  
I'm trying to retrieve the process which prevents a volume from being  
unmounted. I tried using either FSUnmountVolumeAsync or  
FSUnmountVolumeSync. In both cases, the process pid returned in the  
callback function (async procedure) or directly to the function   [...]
]]>
Re: Help with crash logs http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00011.html Reply to list
[...]

If you see a crash in CFRelease, that could mean you're over releasing  
some CF object. Check all your calls that begin with CF and have  
Release in them. Re-read the CF rules of ownership <http://developer.apple.com/mac/library/documentation/CoreFoundation/Conceptual/CFMemoryMgmt/Concepts/Ownership.html

[...]
]]>
Help with crash logs http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00010.html Reply to list

Hi all,   

     

 In one of our customer’s machines, whenever he quits
the application, it appears to quit normally but after quitting, Mac OS reports
that the Application crashed followed by the following crash log which seems to
point somewhere in the library cleanup and unloader code. [...]
]]>
FW: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00009.html Reply to list
Sorry Last one got forwarded by mistake.   

 Again I am very sorry for spamming.   

     

 Nick: I'm using Microsoft RDP  on Windows machines over 2Mbit DSL
often and    

 have always disabled background pictures.  In my experience
working    

 remote on a machine, I mostly use one application and for
example    

 closing or minimizing the window would uncover the background
picture    

 which results in noticeable hiccups.   

     

 Besides that, even complex GUI compresses a lot better than a
grainy    

 analog picture (the photo of the snow leopard would be a
nightmare in    

 that regard) ... e.g. an GUI area with a vertical color or
grayscale    

 gradient will still compress easily because a whole horizontal
line is    

 still a bunch of pixels in the same color.   

     

 Ø  Same observation
here Nick. Great Catch.   

     

 Thanks   

 Rahul   

     

     

     



 DISCLAIMER
==========
This e-mail may contain privileged and confidential information which is the property of Persistent Systems Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Ltd. does not accept any liability for virus infected mails. 



     
]]>
RE: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00008.html Reply to list

   

 Nick: I'm using Microsoft RDP  on Windows machines over 2Mbit DSL
often and    

 have always disabled background pictures.  In my experience
working    

 remote on a machine, I mostly use one application and for
example    

 closing or minimizing the window would uncover the background [...]
]]>
Re: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00007.html Reply to list

On Nov 2, 2009, at 12:18 AM, Rahulkumar Tibdewal wrote:
[...]

I'm using Microsoft RDP  on Windows machines over 2Mbit DSL often and 
have always disabled background pictures.  In my experience working 
remote on a machine, I mostly use one application and for example  [...]
]]>
Re: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00006.html Reply to list

[...]

Yes it is. But the user can cause the same issue by arranging windows  
to create a complex image. If this is causing an issue, then you are  
probably key framing too often.

[...]

Even if I have a complex desktop picture it may be invisible, and   [...]
]]>
Re: how can i set parameters with my customized events http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00005.html Reply to list

[...]

I looked up kEventParamAccessibleAttributeName in the headers and it  
seems to be used for getting the AccessibleAttributeName from an event  
only. 
If you want to create custom events or add custom parameters to  
standard events just define you own param names (and types, if  
necessary). [...]
]]>
RE: How can we remove and restore desktop wallpaper? http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00004.html Reply to list

Thanks Nick and David for your valuable comments.   

 Below are some more details of the points.   

     

 David: But broadcasting this screen should be very efficient, as I'm
only changing a very small area of the screen at a time - if it isn't, then you [...]
]]>
Re: Startup item http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00003.html Reply to list
Thanks, I think LSSharedFileList API is what I'm looking for.    On Oct 31, 2009, at 9:01 PM, Jean-Daniel Dupas wrote:    Le 31 oct. 2009 à 02:05, Ryan Joseph a écrit :  > quoted text

[...]

Regards,  	Josef             
]]>
Re: how can i set parameters with my customized events http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00002.html Reply to list
[...]

You're almost there:  
 SetEventParameter( eventRef, kEventParamAccessibleAttributeName,
typeCFStringRef, sizeof(CFStringRef), &cfString);  
 When handling the event:  
GetEventParameter( eventRef, kEventParamAccessibleAttributeName,  
typeCFStringRef, nil, sizeof( CFStringRef ), nil, &cfString ); 

 ... use string
CFRelease(cfString)  
 or maybe  
 CFRetain(cfString)
... use string
CFRelease(cfString)  
in which case the sender of the event can keep using the string too  
and release it eventually. 

 Jan E  
 
]]>
how can i set parameters with my customized events http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00001.html Reply to list
I created a customized event,but I do not know how to set parameters with it... 
 at the right now,my code is: 
   
 EventRef eventRef; 
 CreateEvent(NULL,kEventClassTimer,kEventTimerFire,0,kEventAttributeNone,&eventRef); SetEventParameter( eventRef, kEventParamAccessibleAttributeName, typeCFStringRef, sizeof(CFStringRef), mask); 
   
 Is it wrong? 
 what should i do???? 
 .....  
  
]]>
Re: Removing Menu Keyboard Shortcuts http://lists.apple.com/archives/carbon-dev/2009/Nov/msg00000.html Reply to list

[...]

I checked again.  It seems that the nibfile file sets the glyph 
somehow.  With virtual key shortcuts set from the program, the 
SetMenuItemCommandKey(fmenu, idx, FALSE, 0) alone does the trick.  If 
there was a virtual key set as shortcut in the nibfile, then  [...]
]]>