New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Development and Darwin Discussion and questions about development for Mac OS X.

iTunes from C++


Post Reply New Thread Subscribe

 
Thread Tools
macdev1

 
Member Since: Jul 10, 2008
Posts: 1
macdev1 is on a distinguished road

macdev1 is offline
I am trying to port a Trolltech QT application written in C++ to Mac which works fine on the PC. The UI portion ported very easily but now trying to interface to iTunes has become a problem.

The application interfaces with iTunes to simply detect whether an iPod is connected or not. On the PC there are functions in the COM interface to query if an iPod is connected and then events to detect when it is removed or another is added.

The Apple supplied demo shows using system calls to start AppleTalk scripts that control iTunes. For me there are 2 problems with this solution, 1) its one way communication, i need to also be notified by iTunes and 2) it feels error prone (of course maybe this is a common practice on the mac in which case i will gladly use it).

I guess I'm just wondering if someone could give me some hints on how I should go about talking to iTunes in a C++ Mac Osx application. (10.5 is going to be the required version if that helps)
QUOTE Thanks
Daniel Boos

 
Member Since: Jul 19, 2008
Location: Geldern, Northrhine-Westphalia
Posts: 3
Daniel Boos is on a distinguished road
Mac Specs: PowerMac G5 (late 2005) 2GHz DC, 16GB RAM, ATI X1900, 2*Nvidia Geforce 6600

Daniel Boos is offline
Don't know if it's possible with iTunes.

IOKit/Corefoundation has mechanism to get notified about new and removed devices, but it's Objective C.

You can find some info in the ADC Reference

Xcode 2.5 ->> file:///Developer/ADC%20Reference%20Library/documentation/DeviceDrivers/Conceptual/AccessingHardware/AH_Finding_Devices/chapter_4_section_2.html#//apple_ref/doc/uid/TP30000379-TPXREF108

or as pdf (page 38 - Getting Notifications of Device Arrival and Departure) http://developer.apple.com/documenta...ngHardware.pdf
QUOTE Thanks

Post Reply New Thread Subscribe


« Cocoa search file | Net send for mac »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Same iTunes under 2 accounts lardyboy Music, Audio, and Podcasting 6 01-16-2008 09:22 PM
iTunes Tips And Tricks RJgamer iPod Hardware and Accessories 2 07-12-2007 12:59 PM
Apple launches iTunes Plus MacHeadCase Apple Rumors and Reports 16 06-04-2007 02:41 PM
iTunes is setting its own burn speeds... help! Manny Pantz iPod Hardware and Accessories 4 03-15-2007 03:41 AM
How do I create an iTunes vault? jabroni5 iPod Hardware and Accessories 1 04-01-2006 07:57 AM

All times are GMT -4. The time now is 03:06 AM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?