Re: PMSessionBeginPage

2010-07-28 Thread Kyle Sluder
On Wed, Jul 28, 2010 at 10:44 PM, Shilpi Aggarwal wrote: > I want to use PMSessionBeginPage in a 64 bit application but this API is not > available for 64 bit applications. Because you should be using Cocoa. Especially since you're asking this question on cocoa-dev. --Kyle Sluder __

Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?

2010-07-28 Thread Jerry Krinock
On 2010 Jul 28, at 20:07, Gideon King wrote: > Thanks Jerry, it is part of an NSPersistentDocument subclass. I get a bit > confused about which save method(s) I would have to implement in my subclass, > as there seem to be a number of save... methods and a number of writeTo... > methods. The p

PMSessionBeginPage

2010-07-28 Thread Shilpi Aggarwal
Hi All, I want to use PMSessionBeginPage in a 64 bit application but this API is not available for 64 bit applications. Whereas, PMSessionBeginPageNoDialog is available for 64 bit applications, but using this API provides no progress bar when the page is printed. Is there a way where we can get

Creating an NSXMLDocument without the xml declaration

2010-07-28 Thread Alec Stewart
Hello, Does anyone know of a way to create an NSXMLDocument that does not contain the the wrote: > A reminder. > > Xcode 4 is under non-disclosure. So you can’t talk about it here, or on the > xcode-users list. > > There are forums that are appropriate. Check the devforums.apple.com for > more i

Re: NSPathControl w/ popups and icons

2010-07-28 Thread Graham Cox
On 29/07/2010, at 12:54 PM, Shane wrote: > So my question is, is this control an NSPathControl? I like icons in > the beginning of it, then the path part. Though I'm not sure how this > is done yet, I hope I'm at the right starting place with this control. Dunno about Xcode, but you can use NSP

Moderator - Reminder, NDA is in effect for Xcode 4

2010-07-28 Thread Scott Anguish
A reminder. Xcode 4 is under non-disclosure. So you can’t talk about it here, or on the xcode-users list. There are forums that are appropriate. Check the devforums.apple.com for more information. Thanks for your cooperation. Scott [Moderator description]_

[Moderator] Re: NSPathControl w/ popups and icons

2010-07-28 Thread Scott Anguish
Moderator: Discussion of Xcode 4 (which is under NDA) is prohibited on this list. Or any public list. devforms.apple.com does have NDA forums if you qualify. Answerer: what you’re referring to is a ‘breadcrumb’ as we call it. i.e. a bits so you can find your way back. But, due to the NDA restr

Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?

2010-07-28 Thread Gideon King
Thanks Jerry, it is part of an NSPersistentDocument subclass. I get a bit confused about which save method(s) I would have to implement in my subclass, as there seem to be a number of save... methods and a number of writeTo... methods. The potential candidates seem to be: saveDocument: saveDocu

NSPathControl w/ popups and icons

2010-07-28 Thread Shane
I would like to make sure I'm using the right control to do what I'm after. My path is not a file system or URL path, rather, it's more like, several objects that make up the branch of a hierarchy, very much like a search tree for my application. And I'd like for each of these "parts" of the path

Re: Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?

2010-07-28 Thread Jerry Krinock
On 2010 Jul 28, at 15:43, Gideon King wrote: > I was successfully using NSManagedObjectContextWillSaveNotification in 10.6, > but have to also support OS X 10.5, where that notification is not available. > Was there some notification sent prior to 10.6? I'm not sure, but if it was, Apple prob

Intercepting deletion of NSManagedObjects or how to handle deletion in non-explicit relationships?

2010-07-28 Thread Martin Stanley
I have what I hope is an interesting modelling/technical problem. I have a NSPersistentDocument application that implements the concept of smart groups. The user can create arbitrarily complex predicates to specify the conditions for group membership. I have modelled this with a SmartGroup ent

Re: Sample code for "simple" sharing using Bonjour?

2010-07-28 Thread Graham Cox
On 29/07/2010, at 2:53 AM, Kirk Kerekes wrote: > might be useful. > Indeed it might - thanks for the pointer. It already helps, since it states that NSSocketPortNameServer is a wrapper for all the other Bonjour stuff, something tha

Re: help with methods

2010-07-28 Thread Ken Thomases
On Jul 28, 2010, at 1:27 PM, Rounak Jain wrote: > I am comfortable with understanding method declarations like > - (void) someName: (NSString *) variableName; > where > void is return type > someName is name of the method Close. "someName:" _with the colon_ is the name of the method. There's a

Equivalent of NSManagedObjectContextWillSaveNotification in 10.5?

2010-07-28 Thread Gideon King
Hi all, I need to do some stuff before my managed object context saves. I was successfully using NSManagedObjectContextWillSaveNotification in 10.6, but have to also support OS X 10.5, where that notification is not available. Was there some notification sent prior to 10.6? If the recommendati

Re: Converting File URL Scheme Path to filesystem representation string

2010-07-28 Thread Dave DeLong
I generally use NSURL's -path method. If you then need the resulting string as a char*, then you can use -[NSString fileSystemRepresentation] Dave On Jul 28, 2010, at 12:39 PM, JanakiRam Palepu wrote: > ** > > Hi folks, > > > I've been trying to extract NSString from a URL like string , as

Re: Dock-like application

2010-07-28 Thread Nick Zitzmann
On Jul 27, 2010, at 3:02 AM, cocoa nick wrote: > How to make a window not to activate its process after click on that window? Make the window a non-activating NSPanel. To do that, initialize a panel with NSNonactivatingPanelMask in its style mask. Nick Zitzmann __

Converting File URL Scheme Path to filesystem representation string

2010-07-28 Thread JanakiRam Palepu
** Hi folks, I've been trying to extract NSString from a URL like string , as specified below. Input String: *file://localhost/Users/admin/Music/iTunes/* I've tried couple of options. 1. Created a NSURL from the string and extracting the string with absoluteString method. 2. Manually re

help with methods

2010-07-28 Thread Rounak Jain
Hi all, Newbie here. I am comfortable with understanding method declarations like - (void) someName: (NSString *) variableName; where void is return type someName is name of the method (NSString *) is the type of the variableName and variableName is the variable However, I feel helpless when I

RE: Truncating UIActionSheet labels

2010-07-28 Thread Jim Adams
There is no way I would use a UIActionSheet for this type of menu. You lose way to much control over the information display. I think I would look for a different paradigm like a UITableView in a popover window. -Original Message- From: cocoa-dev-bounces+jim.adams=sas@lists.apple.com

mouse Event Taps, CGEvent and destination control

2010-07-28 Thread cocoa nick
Hello Is it possible to get a destination control's Accessibility API's AXTitle (or another distinguishing characteristic - i need to know, if the clicked control was Microsoft Word's "Document Pane" (it is AXView object, in terms of accessibility)) from the callback function, that is called whenev

Dock-like application

2010-07-28 Thread cocoa nick
How to make a window not to activate its process after click on that window? (for example, like Dock does that - after you click on the dock, your currently active process will remain active, while dock receives mouse event and performs some actions) Thanks _

Re: Truncating UIActionSheet labels

2010-07-28 Thread Fritz Anderson
I believe you are correct. I don't know why I didn't think of that myself. — F On 28 Jul 2010, at 10:36 AM, Jim Adams wrote: > There is no way I would use a UIActionSheet for this type of menu. You lose > way to much control over the information display. I think I would look for a > di

IKImageView hangs?

2010-07-28 Thread Brian Postow
I'm writing a scanning application that is getting images from a document scanner, turning them into NSImages and then displaying them in an IKImageView. About half of the time, however, when I try to call setImage:ImageProperties in IKImageView, it just hangs. It only happens when I'm getting

Re: Popup button cells in a table view

2010-07-28 Thread Jerry Krinock
On 2010 Jul 27, at 18:53, Kiel Gillard wrote: > My problem is this. When I run my app, the popup button menus contain the > descriptions of the arranged objects in the popup array controller instead of > respecting the content value binding I have specified. > > I am certain my model is key-va

RE: NSWindow and setLevel

2010-07-28 Thread Aragao, Andre Augusto de (Andre)
Doesn't work. Here is my code: NSApp delegate] mainController] window] setLevel:NSModalPanelWindowLevel]; NSApp delegate] mainController] window] setCollectionBehavior:NSWindowCollectionBehaviorManaged]; NSApp delegate] mainController] wi

Re: Modal phone calls?

2010-07-28 Thread vincent habchi
> What the heck. What's the worst that could happen??? Transform the iPhone into an automated call machine? Vincent > ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Modal phone calls?

2010-07-28 Thread Martin Stoufer
On 7/28/10 9:30 AM, Roland King wrote: ] That is what I was afraid of. However when I answer an incoming call while app A is in the foreground. it will reappear once I hang up the call. There is probably some private API hanging around that allows for this. If there is you can't discuss i

RE:Sample code for "simple" sharing using Bonjour?

2010-07-28 Thread Kirk Kerekes
might be useful. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)list

Re: Modal phone calls?

2010-07-28 Thread Roland King
>> ] > That is what I was afraid of. However when I answer an incoming call while > app A is in the foreground. it will reappear once I hang up the call. There > is probably some private API hanging around that allows for this. > If there is you can't discuss it here and if you find one, you c

Re: Modal phone calls?

2010-07-28 Thread Martin Stoufer
On 7/27/10 3:22 PM, Luke the Hiesterman wrote: On Jul 27, 2010, at 3:18 PM, Martin Stoufer wrote: I have a working app that is using the openURL: method on its sharedApplication to dial a phone#. The issue I am unable to resolve now is how to get the phone app to 'background' itself once th

[iphone] Hud style UIView

2010-07-28 Thread Sandro Noël
Greetings! my goal: prompt the user for a single line of text with a modal view containing a text field and the keyboard. the keyboard becomes visible as it should when the text field becomes first responder. What I've done is design the view in interface builder. and set the view colour to b

Re: presentMoviePlayerViewControllerAnimated without view controller?

2010-07-28 Thread sebi
Whoops, sorry, I forgot it again, this refers to the iPhone/iPad and iOS versions >= 3.2 which do not sem to support the basic MPMoviePlayerController anymore. On 28.07.2010, at 17:16, sebi wrote: > Hello, > > I need to update an older app which is based only on a window and a view. Up > to n

presentMoviePlayerViewControllerAnimated without view controller?

2010-07-28 Thread sebi
Hello, I need to update an older app which is based only on a window and a view. Up to now it shows a movie using the MPMoviePlayerController. Now I have to use the MPMoviePlayerViewController. Unfortunately since there is no view controller I can't just call presentMoviePlayerViewControllerAni

Re: Truncating UIActionSheet labels

2010-07-28 Thread Fritz Anderson
On 27 Jul 2010, at 6:16 PM, Steve Christensen wrote: > Although you say that the button labels are generated dynamically, does it > really not make sense for you to generate the alert title and/or message > strings dynamically and use static button labels (OK/Cancel, Yes/No, etc.)? > Both of th

Sample code for "simple" sharing using Bonjour?

2010-07-28 Thread Graham Cox
Hi all, I'm looking into adding local-area sharing of something within my app, which is analogous to playlists in iTunes. What I want is for users to be able to share these collections with other users of the app on a local network using a simple "share this" command. Any other machine then dis