SMS Application

2010-04-23 Thread Angelica Grace Tanchico
Hello, Is it possible to integrate iPhone's SMS application to a new application? Not just launching the SMS app (and terminating the calling app) but some kind of SMS as a tab view on a new app? Thanks in advance! :) Angie

Re: Wave form graph through Core Audio?

2010-04-23 Thread Paul Sanders
I'm working on generating a wave form for a sound bite, but I'm stuck in Core Audio, which seems to be not over-documented, so to speak. All I need for now is an array of integers, based on some sample rate, for a given sound file, but most of Core Audio seems to target more complex

Any way to manually fix NSTextView's font rendering bug?

2010-04-23 Thread Keith Blount
Hello, I'm looking for a way to fix a minor but unsightly bug in NSTextView (I've reported it as bug ID 7898471, but it may be the same bug as an older one with ID 6987764). It's a bug that seems to have been present since Tiger, so I'd like to find a solution myself rather than wait and hope

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Christian Ziegler
Hi all! I would like to step in here for a related question. Is there any way to get rid of the compiler warnings if you use the generated accessors without writing a subclass of NSManagedObject and adding properties and method declarations? Regards, Chris

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Mike Abdullah
On 23 Apr 2010, at 10:46, Christian Ziegler wrote: Hi all! I would like to step in here for a related question. Is there any way to get rid of the compiler warnings if you use the generated accessors without writing a subclass of NSManagedObject and adding properties and method

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Roland King
yes there is - and it's in the documentation too http://developer.apple.com/mac/library/documentation/cocoa/conceptual/CoreData/Articles/cdAccessorMethods.html If you are not using a custom class, to suppress compiler warnings you can declare the properties in a category of NSManagedObject:

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Joanna Carter
Hi Christian I would like to step in here for a related question. Is there any way to get rid of the compiler warnings if you use the generated accessors without writing a subclass of NSManagedObject and adding properties and method declarations? Normally, generating a subclass also

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Mike Abdullah
ah, good point. Seems pretty ugly though as you start suggesting that all managed objects support those methods. It only takes a moment to generate a subclass that does this. On 23 Apr 2010, at 11:28, Roland King wrote: yes there is - and it's in the documentation too

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Christian Ziegler
Hi all! First of all shame on me, I didn't read this article entirely (one of my very very bad traits ;-) ), thanks very much though for pointing it out. Given the very good arguments I think it's better to create subclasses. Also thanks to Mike I figured out how to easily create those

Re: NSApplicationMain question

2010-04-23 Thread Bill Appleton
hi all, wow thanks for the advice. i agree i will need to ultimately know a lot about cocoa to make the transition i don't have a lot of choices, in that the engine i am porting is about 1/2 million lines of C, and about 10,000 enterprise companies depend on it, mainly on windows, although a

Accessibility for NSTableView

2010-04-23 Thread Houdah - ML Pierre Bernard
Hi! I have a table view which lists files. I would like to make the represented objects available through Accessibility. I.e. I want to add NSAccessibilityURLAttribute and NSAccessibilityFilenameAttribute to the table rows. So far, I have come up with this: -

Re: setValue:forKey: and to-many relationships

2010-04-23 Thread Dave DeLong
Aha! I overlooked that one because I was expecting the method to accept two parameters. Thanks! :) Dave Sent from my iPhone On Apr 22, 2010, at 2:39 PM, Keary Suska cocoa-...@esoteritech.com wrote: -mutableSetValueForKey: ___ Cocoa-dev mailing

Re: NSApplicationMain question

2010-04-23 Thread Paul Sanders
I had a vaguely similar requirement in that I wanted to port my Windows app to Cocoa and I wanted to do it (and indeed did do it) by writing a 'Windows emulation library' on top of Cocoa. This took about a year. To get started, I wrote a very simple one-window Cocoa program ('Cocoa

Reason for menuNeedsUpdate notification?

2010-04-23 Thread David Reitter
How would I go about determining the reason for a menuNeedsUpdate notification? My app gets these both for key presses and clicks on the menu. I would like to only update it for clicks, because updating the menu is slow (and will be even slower when done separately for each menu item, via

Re: Reason for menuNeedsUpdate notification?

2010-04-23 Thread Paul Sanders
NSMenuDidBeginTrackingNotification might do what you want. Note that, despite what the docs say, this is not sent on Tiger. Paul Sanders - Original Message - From: David Reitter david.reit...@gmail.com To: cocoa-dev@lists.apple.com Sent: Friday, April 23, 2010 4:31 PM Subject: Reason

Re: NSApplicationMain question

2010-04-23 Thread Jens Alfke
On Apr 23, 2010, at 7:08 AM, Bill Appleton wrote: so i have made a lot of efforts to learn cocoa, but our product is an NPAPI browser plugin Whoa, hold on, stop the music — That changes things. You’re not writing an app, then. So you have no NSApplicationMain. You’re just writing a bundle

Re: NSApplicationMain question

2010-04-23 Thread Bill Appleton
hi jens you are right about all of that except we also run in stand alone application mode, and we also have floating palettes and scripting windows (etc) in developer mode in the browser (i'm the guy who wrote supercard if that explains anything to the old-timers) thx bill On Fri, Apr

Re: Reason for menuNeedsUpdate notification?

2010-04-23 Thread Eric Schlegel
On Apr 23, 2010, at 8:31 AM, David Reitter wrote: How would I go about determining the reason for a menuNeedsUpdate notification? On 10.6, you can use -[NSMenu propertiesToUpdate] from within your menuNeedsUpdate delegate to determine what aspects of the menu need to be updated. In the key

Re: NSApplicationMain question

2010-04-23 Thread Paul Sanders
(i'm the guy who wrote supercard if that explains anything to the old-timers) It does. Respect. Paul Sanders. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

overwriting own bundle

2010-04-23 Thread Philip White
Hello, Is it acceptable for an application to overwrite its own bundle, say as part of an update? Assuming of course that it can get any necessary elevated privileges? Or should I spawn a task that waits for the app to quit and then overwrite it? Thanks, Philip

Re: overwriting own bundle

2010-04-23 Thread Dave Carrigan
On Apr 23, 2010, at 9:38 AM, Philip White wrote: Is it acceptable for an application to overwrite its own bundle, say as part of an update? Assuming of course that it can get any necessary elevated privileges? Or should I spawn a task that waits for the app to quit and then overwrite it?

showing a list of mounted volumes with icon

2010-04-23 Thread Angelo Chen
Hi, Just like when press 'Option' while booting, we can see a list of volumes with icons, is there a simple way to do something similar in a sheet? Thanks, Angelo ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: showing a list of mounted volumes with icon

2010-04-23 Thread Kyle Sluder
On Fri, Apr 23, 2010 at 10:01 AM, Angelo Chen angelochen...@yahoo.com.hk wrote: Hi, Just like when press 'Option' while booting, we can see a list of volumes with icons, is there a simple way to do something similar in a sheet? Thanks, What is the part you're trying to emulate, the appearance

Re: overwriting own bundle

2010-04-23 Thread Jens Alfke
On Apr 23, 2010, at 9:43 AM, Dave Carrigan wrote: Have a look at the sparkle framework, for doing updates. I believe what it does is moves the app bundle to the trash then drops in the new app bundle. +1. This is tricky to do right, and the fewer self-update frameworks there are, the

Re: overwriting own bundle

2010-04-23 Thread Paul Sanders
Is it acceptable for an application to overwrite its own bundle, say as part of an update? Assuming of course that it can get any necessary elevated privileges? Or should I spawn a task that waits for the app to quit and then overwrite it? Do you install from an mpkg? I just download

Re: NSApplicationMain question

2010-04-23 Thread Paul Sanders
you [Jens] are right about all of that except we also run in stand alone application mode, and we also have floating palettes and scripting windows (etc) in developer mode in the browser I would think, then, that mastering the anatomy of a standard Cocoa application would be well worthwhile.

Re: NSApplicationMain question

2010-04-23 Thread Paul Sanders
I build the NSView hierarchy for a window from a Windows .res file ... It's worth adding that I started with a substantial base of working, well-tested Windows code. My approach would not otherwise be justified. But with 1/2 million lines of code, you must be in an analogous situation.

Re: NSApplicationMain question

2010-04-23 Thread Paul Sanders
I build the NSView hierarchy for a window from a Windows .res file ... Or do you have your own 'bare metal' widget set? If you are already cross-platform, I guess you probably do. In which case [NSWindow sendEvent:] is what you're looking for - everything comes through there - plus the NS

Re: NSApplicationMain question

2010-04-23 Thread Jack Carbaugh
On Apr 23, 2010, at 12:06 PM, Bill Appleton wrote: (i'm the guy who wrote supercard if that explains anything to the old-timers) Mad respect! Kudos dude. Loved supercard! jack ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not

Re: Reason for menuNeedsUpdate notification?

2010-04-23 Thread David Reitter
On Apr 23, 2010, at 11:47 AM, Paul Sanders wrote: NSMenuDidBeginTrackingNotification might do what you want. Note that, despite what the docs say, this is not sent on Tiger. This notification does not give me the actual menu, but I am now using it in combination with menuNeedsUpdate: the

Localizing of print dialogs

2010-04-23 Thread danchik
Hi, is there something that I need to do to make the dialogs (not the ones included with app) come up localized? For example, calling [printOperation runOperation] brings up the print dialog always in English, even though the user language should be Russian for example BUT doing print from say

Re: showing a list of mounted volumes with icon

2010-04-23 Thread Angelo Chen
Hi Kyle, I'd just like show a collection of mounted volumes in a sheet and let user choose one of them. Thanks, Angelo --- 2010年4月24日 星期六,Kyle Sluder kyle.slu...@gmail.com 寫道﹕ 寄件人: Kyle Sluder kyle.slu...@gmail.com 主題: Re: showing a list of mounted volumes with icon 收件人: Angelo Chen

Re: showing a list of mounted volumes with icon

2010-04-23 Thread James Walker
On 4/23/2010 5:47 PM, Angelo Chen wrote: I'd just like show a collection of mounted volumes in a sheet and let user choose one of them. Carbon has a call just for this (NavCreateChooseVolumeDialog) but I don't see anything so easy for Cocoa. You can get a list of volumes with NSFileManager,