NSService - I need a headslap

2009-02-04 Thread Steve Cronin
Folks; I have a need for a stand-alone service. Seems like Service don't get alot of love... (Maybe that's my problem .. but I don't think so) To be clear here, this is a stand-alone .service type application (not a service vended by a larger app (like Mail). Here's what I have done: 0) b

Re: NSService - I need a headslap

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 00:44, Steve Cronin wrote: +(void)initialize { [NSApp setDelegate:self]; } "self"? As in the class object? As in [MyDelegateClass class]? Are you sure you really want [NSApp setDelegate: [MyDelegateClass class]]? ___ Coco

Re: NSTask in separate thread is leaking memory

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 4:49 AM, Oleg Krupnov wrote: I use an NSTask to collect system info from system_profiler. Because it takes a while to complete, I launch that task in a separate thread, to avoid UI from freezing. Both NSTask and NSFileHandle provide asynchronous interfaces, so it is not ne

Re: NSService - I need a headslap

2009-02-04 Thread Ron Fleckner
On 04/02/2009, at 7:44 PM, Steve Cronin wrote: +(void)initialize { [NSApp setDelegate:self]; } Hi Steve, as Quincey has suggested, looks like the above is the problem. I've done a stand-alone .service and [NSApp setDelegate:self] is in - (id)init, not + (void)initialize. Ron _

NSTask in separate thread is leaking memory

2009-02-04 Thread Oleg Krupnov
I use an NSTask to collect system info from system_profiler. Because it takes a while to complete, I launch that task in a separate thread, to avoid UI from freezing. Here is my code (I borrowed it from JRFeedbackProvider, http://github.com/rentzsch/jrfeedbackprovider/tree/master): - (void)gather

how to get iPhone serial number using UIDevice

2009-02-04 Thread Ankur Diyora
Hello all, I want iPhone serial number programatically.For that i use NSString *deviceId = [UIDevice currentDevice] uniqueIdentifier ; I get deviceId but it is iPhone uniqueID(40 char). How i get correct serial number which is given behindiPhone? Thank you... __

Core animation - Safari Find effect

2009-02-04 Thread Nick Brandaleone
Hi all, I am just getting into core animation, and it seems very promising. I am creating a simple search app, and I want to "highlight" the found word/phrase in a large body of text, in a similar way that Safari does it (background goes dim, and word is highlighted). I have the first part

Re: Advanced NSTextView use

2009-02-04 Thread Chris Idou
That didn't seem to help. I tried overriding selectedRanges, and that makes you delete the whole range when you are clicked in it (good), but nothing seems to help the case of trying to simply backspace from the end of the range. In this case the selected range is not relevant because you are no

Re: NSTask in separate thread is leaking memory

2009-02-04 Thread Oleg Krupnov
Marvelous! Thank you very much, Ken. All of your advices worked like a charm. As always, it's been a good idea to get rid of thread spawning. I've done so using the asynchronous readToEndOfFileInBackgroundAndNotify method of the reading file handle of the pipe. It is indeed that I used the synchr

Open OtherApp just behind MyApp

2009-02-04 Thread Yang Meyer
Hi, I want to open another application (say, Safari) in the "layer" just behind my application. I've researched quite a bit now, but the two "solutions" I have found so far do not do exactly what I want. "Solution" 1: NSWorkspace * ws = [NSWorkspace sharedWorkspace]; [ws l

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-04 Thread Chunk 1978
$appLicense = $_REQUEST["appLicense"]; did not work either... :/ On Tue, Feb 3, 2009 at 10:28 PM, Chunk 1978 wrote: > someone else told me that in order to use custom variables on my > paypal buttons i needed to set up IPN, and that the variable would > become apart of the button's URL... but i'

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
Well, sheesh - that's embarrassing! There is no 'self' until init - I know that! Ugh. However, that doesn't change my end result! I never see anything on the Services menu nor anything from the NSLog statements shown below. (Even when I double-click on the .service file; after whcih I CA

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 8:02 AM, Yang Meyer wrote: I want to open another application (say, Safari) in the "layer" just behind my application. "Solution" 2: [ws launchApplication:@"Safari"]; // opens Safari in front [NSApp activateIgnoringOtherApps:YES]; // pushes my app in front, effec

Re: NSMatrix, scroll wheel and tool tips

2009-02-04 Thread David Blanton
I am at a loss as there appears to be nothing in NSMatrix or NSScroller that would deal with this behavior. Thanks for you comments. On Feb 3, 2009, at 4:28 PM, Graham Cox wrote: On 4 Feb 2009, at 4:45 am, David Blanton wrote: I have an NSMatrix (sub-classed) of NSImage cells. I set the

NSBezierPath (Modifying Paths)

2009-02-04 Thread Joseph Crawford
Hello Everyone, I am working on something small just to learn with and I have been trying to figure this out for a while. The end result that I am looking for is this Draw A straight line click the line and drag to make that line curve Now I have been able to get all of this to work aside

Re: AquaticPrime Config.php + PayPal Advanced Variables Not Working

2009-02-04 Thread Sherm Pendley
On Feb 4, 2009, at 9:28 AM, Chunk 1978 wrote: $appLicense = $_REQUEST["appLicense"]; did not work either... :/ I wouldn't expect it to, since there is no "appLicense" item in the query string: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=1234567 You should take

Re: NSTask in separate thread is leaking memory

2009-02-04 Thread Adam R. Maxwell
On Feb 4, 2009, at 3:25 PM, Oleg Krupnov wrote: So the problem is solved for now, but one question still left open for the future is the following: would it be thread-safe to use NSTask in the way I originally attempted? If yes, why did it leak? The leak was reported somewhere inside NSTask int

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Sean McBride
On 2/4/09 3:02 PM, Yang Meyer said: >I want to open another application (say, Safari) in the "layer" just >behind my application. Have you looked at using Launch Servires? See LSLaunchURLSpec() and LSLaunchFlags. -- Sean McBride, B. E

Re: NSTask in separate thread is leaking memory

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 7:25 AM, Oleg Krupnov wrote: Marvelous! Thank you very much, Ken. All of your advices worked like a charm. You're welcome. I'm glad I could help. So the problem is solved for now, but one question still left open for the future is the following: would it be thread-safe

Empty window appears when going fullscreen in awakeFromNib

2009-02-04 Thread Jonathan Selander
I have a program that goes into fullscreen like this: - (IBAction) goFullScreen:(id)sender { // bort med dock och menubar, motverka tvångsavluta, alt+tab och utloggning SetSystemUIMode(kUIModeAllHidden, kUIOptionDisableAppleMenu | kUIOptionDisab

Re: how to get iPhone serial number using UIDevice

2009-02-04 Thread Clark Cox
On Wed, Feb 4, 2009 at 4:08 AM, Ankur Diyora wrote: > Hello all, > I want iPhone serial number programatically.For that i use NSString > *deviceId = [UIDevice currentDevice] > uniqueIdentifier > ; > I get deviceId but it is iPhone uniqueID(40 char). How i get correc

[Q] detecting when a NSTextField begins editing

2009-02-04 Thread Eric Gorr
I am familiar with the NSControlTextDidBeginEditingNotification notification, but this notification is insufficient for my needs because it is only sent after the user actually changes the text and not when the user clicks in the field and it actually allowed to change the text. The reaso

Re: Core animation - Safari Find effect

2009-02-04 Thread Ross Carter
On Feb 4, 2009, at 7:27 AM, Nick Brandaleone wrote: I am creating a simple search app, and I want to "highlight" the found word/phrase in a large body of text, in a similar way that Safari does it (background goes dim, and word is highlighted). Would NSTextView -showFindIndicatorForRange:

Re: Open OtherApp just behind MyApp

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 10:08 AM, Sean McBride wrote: On 2/4/09 3:02 PM, Yang Meyer said: I want to open another application (say, Safari) in the "layer" just behind my application. Have you looked at using Launch Servires? See LSLaunchURLSpec() and LSLaunchFlags. I don't think that's going to

why popupbuttoncell always select second item in tableview ?

2009-02-04 Thread Yang Mu
popupbuttoncell can show in table view. but I don't know how to change default selection of popupbuttoncell. it always select second item another problem is when changing selection of popupbuttoncell, it always back to before if I make any mistake ,please give me some help following is all cod

Drag and drop images to other application using NSFilesPromisePboardType

2009-02-04 Thread Dikshith Rai
Hi All, I am trying to drag files from my application to iPhoto,Mail,Preview etc (any application that accepts image files). I am using NSFilesPromisePboadType.The reason for using NSFilesPromisePboadType is application data is stored as a package and I need to extract image from the pack

Re: NSService - I need a headslap

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 07:03, Steve Cronin wrote: However, that doesn't change my end result! I think you threw the baby out with the bath water. *Something* has to create your app delegate object, since it's not coming from a NIB file in this case. So... +(void) initialize {[NSApp s

Re: Advanced NSTextView use

2009-02-04 Thread Ross Carter
I don't know know if there's a better way, but I call my selection- fixing code in -selectionRangeForProposedRange:granularity:, and also in the following NSTextView overrides if the selected range length is 0 (if it's not zero, presumably it's already been fixed by - selectionRangeForPropose

Re: why popupbuttoncell always select second item in tableview ?

2009-02-04 Thread Corbin Dunn
Howdy, On Feb 4, 2009, at 2:45 AM, Yang Mu wrote: popupbuttoncell can show in table view. but I don't know how to change default selection of popupbuttoncell. it always select second item another problem is when changing selection of popupbuttoncell, it always back to before if I make a

Re: Drag and drop images to other application using NSFilesPromisePboardType

2009-02-04 Thread Corbin Dunn
On Feb 4, 2009, at 5:24 AM, Dikshith Rai wrote: Hi All, I am trying to drag files from my application to iPhoto,Mail,Preview etc (any application that accepts image files). I am using NSFilesPromisePboadType.The reason for using NSFilesPromisePboadType is application data is stored as a

Re: Stroking a CATextLayer

2009-02-04 Thread Benjamin Dobson
Thank you. I now have it working nicely. On 3 Feb 2009, at 18:09:37, David Duncan wrote: On Feb 3, 2009, at 7:43 AM, Benjamin Dobson wrote: On 3 Feb 2009, at 15:05:51, glenn andreas wrote: On Feb 3, 2009, at 8:50 AM, Benjamin Dobson wrote: Has anyone managed this, short of creating a separ

Re: CoreData migration and file change

2009-02-04 Thread Barry Wark
I recently asked a related question on StackOverflow: http://stackoverflow.com/questions/380076/manual-core-data-schema-migration-without-document-changed-warning. The answer should help you out. On Tue, Feb 3, 2009 at 9:08 AM, Dan Grassi wrote: > I have a CoreData application and am migrating th

Re: Core animation - Safari Find effect

2009-02-04 Thread Matt Long
It's not really clear what you are asking. Your final question is "Does this sound correct?" to which I would respond, "yes". Though earlier in the message you ask for advice on the "remaining parts". It would help if you were to clarify what you mean. When you say "...a miracle happens...(

Re: NSBezierPath (Modifying Paths)

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 07:35, Joseph Crawford wrote: Draw A straight line click the line and drag to make that line curve Now I have been able to get all of this to work aside from one thing. If you draw a curve then go to draw another the first one is not remembered. Code: http://paste.lisp

NSXML & Auto Release Pools

2009-02-04 Thread Alan Shouls
Hi I am having some problems with NSXML and auto relese pools. I am using NSXML in a C++ and am working through some test cases and have come across something I can't quite figure out. Here is what I do: 1. Create an Auto Release Pool 2. Create an NSXML object using [NSXMLDocument alloc] initWit

[Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Eric Gorr
When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wondering if there was any way to control what appeared here so it wasn't so curt - it would be nice to

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Joar Wingfors
On Feb 4, 2009, at 10:12 AM, Eric Gorr wrote: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wondering if there was any way to control what appeared

Re: NSXML & Auto Release Pools

2009-02-04 Thread Nick Zitzmann
On Feb 4, 2009, at 11:06 AM, Alan Shouls wrote: I then get a warning NSCFString autoreleased with no pool in place - just leaking If, however I do things so that I release my NSXML object before releaseing the Auto Release Pool - no message. Does anyone have any insight into why this is

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Eric Gorr
On Feb 4, 2009, at 1:24 PM, Joar Wingfors wrote: On Feb 4, 2009, at 10:12 AM, Eric Gorr wrote: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wonderi

Re: NSXML & Auto Release Pools

2009-02-04 Thread James Montgomerie
On 4 Feb 2009, at 18:06, Alan Shouls wrote: I am using NSXML in a C++ and am working through some test cases and have come across something I can't quite figure out. Here is what I do: 1. Create an Auto Release Pool 2. Create an NSXML object using [NSXMLDocument alloc] initWithData: (NSData

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Eric Gorr
On Feb 4, 2009, at 1:24 PM, Joar Wingfors wrote: On Feb 4, 2009, at 10:12 AM, Eric Gorr wrote: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wonderi

Re: applicationShouldOpenUntitledFile in Core Data App?

2009-02-04 Thread Jean-Nicolas Jolivet
Thanks guys, turns out it was a stupid mistake on my end! I'll only say this: If you're trying to prevent your app from creating a new document when it launches, make sure your App delegate isn't getting instantiated in your Document's nib! :P (Oh and Andy, you're absolutely right about the

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Sean McBride
On 2/4/09 10:24 AM, Joar Wingfors said: >> When launching an application which requires a newer version of the >> OS, the OS displays the string: >> >>"You cannot use the application "XXX" with this version of Mac OS >> X." >> >> I was just wondering if there was any way to control what appear

How can I display a pop-up alert message to a user from a background launchd daemon?

2009-02-04 Thread Tom Fortmann
Can anyone offer some guidance on how to pop-up a dialog box from a background process? I have a system daemon started by launchd out of the /Library/LaunchDaemons folder. Among other things the daemon manages a background software update process, and depending on the extent of the change require

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Eric Gorr
On Feb 4, 2009, at 1:44 PM, Sean McBride wrote: On 2/4/09 10:24 AM, Joar Wingfors said: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wondering if there w

Re: NSBezierPath (Modifying Paths)

2009-02-04 Thread Joseph Crawford
Quincey, You make some very good points. Let me first start out by saying I was doing ALL the path work in drawRect: based on someone telling me that was the best practice, I then had a few people including you tell me that is not the case. I am not worried about performance right now th

Re: How can I display a pop-up alert message to a user from a background launchd daemon?

2009-02-04 Thread Nick Zitzmann
On Feb 4, 2009, at 11:49 AM, Tom Fortmann wrote: Can anyone offer some guidance on how to pop-up a dialog box from a background process? I have a system daemon started by launchd out of the /Library/LaunchDaemons folder. Among other things the daemon manages a background software update

Re: NSBezierPath (Modifying Paths)

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 10:54, Joseph Crawford wrote: This is all just messing around trying to replicate the capabilities of the curve tool in many drawing applications, I already saw how to replicate the drawing of a line and that would be a different tool to choose from. What would you sugg

Re: Zooming and panning an NSImageView

2009-02-04 Thread Christian Graus
Thanks Rob. Knowing what to type into google is usually the hardest part ( I had done some searching and had not seen this ). I'm looking at the docs now, this looks perfect for what I needed. Thanks again Christian ___ Cocoa-dev mailing list (Cocoa-d

Re: NSXML & Auto Release Pools

2009-02-04 Thread Alan Shouls
Hi James, The NSXML object is probably calling autorelease on something in its dealloc method (this is perfectly legal, and should generally be seen as implementation detail - you're just seeing a side effect of it here). Right - thanks for this. This explains what is happening. Best reg

Re: CoreData migration and file change

2009-02-04 Thread Dan Grassi
After having read everything I can google I have only progressed to: "The document “project.xml” has been moved." I am doing a manual migration so I do not call configurePersistentStore:... as Miguel suggests but have tried setFileModificationDate as suggested and I only get a slightly bette

Re: NSService - I need a headslap

2009-02-04 Thread Peter Ammon
Hi Steve, What appears in the Services menu is entirely determined by the NSServices portion of your Info.plist. If you post that to the list, we can look for any problems. Your Service is launched on-demand when the user selects it from the menu. Services may be background only, but do

Getting the value of GUI elements from non-main threads

2009-02-04 Thread Cem Karan
I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have a worker thread. The user edits the field, clicks a button, and the main thread hands off the an

Re: Getting the value of GUI elements from non-main threads

2009-02-04 Thread Ken Thomases
On Feb 4, 2009, at 2:47 PM, Cem Karan wrote: I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have a worker thread. The user edits the field, clicks a

Re: how to get iPhone serial number using UIDevice

2009-02-04 Thread Robert Marini
There is no way to obtain the serial number of a device using the SDK. The unique identifier, as the name indicates, is a string guaranteed to be unique for each device. If you need access to the serial number for some other reason (i.e. tracking devices in an enterprise environment) I'd ad

Re: CoreData migration and file change

2009-02-04 Thread sanchezm
On Feb 4, 2009, at 12:25 PM, Dan Grassi wrote: After having read everything I can google I have only progressed to: "The document “project.xml” has been moved." I am doing a manual migration so I do not call configurePersistentStore:... as Miguel suggests but have tried setFileModificatio

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
Peter; Thanks for the response! Launched on demand based on the Service specifications in Info.plist - there that's a big conceptual milestone! Thank-you!! (I wish that was written down somewhere I could find...) So for a stand-alone service should we -terminate after each call? Here's how

Re: NSService - I need a headslap

2009-02-04 Thread Dave Dribin
On Feb 4, 2009, at 2:37 PM, Peter Ammon wrote: On Tiger and earlier, there is no way to avoid needing to log in and out. On Leopard, you can use the function NSUpdateDynamicServices() to immediately scan for new Services. If you're just testing, a quick way to scan for new Services is to r

Re: Getting the value of GUI elements from non-main threads

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 13:10, Ken Thomases wrote: On Feb 4, 2009, at 2:47 PM, Cem Karan wrote: I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have a wo

Re: Getting the value of GUI elements from non-main threads

2009-02-04 Thread Cem Karan
On Feb 4, 2009, at 4:10 PM, Ken Thomases wrote: On Feb 4, 2009, at 2:47 PM, Cem Karan wrote: I know that we can only modify GUI elements from the main thread, but can we get the values for objects from other than the main thread? E.g., assume I have an editable NSTextField, and I have a

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Eric Gorr
On Feb 4, 2009, at 1:44 PM, Sean McBride wrote: On 2/4/09 10:24 AM, Joar Wingfors said: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version of Mac OS X." I was just wondering if there w

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Benjamin Dobson
On 4 Feb 2009, at 22:01:06, Eric Gorr wrote: On Feb 4, 2009, at 1:44 PM, Sean McBride wrote: On 2/4/09 10:24 AM, Joar Wingfors said: When launching an application which requires a newer version of the OS, the OS displays the string: "You cannot use the application "XXX" with this version

Update an existing Core Data store when the model changes?

2009-02-04 Thread Daniel Thorpe
Hello everyone. I'm currently developing a Core Data based app, which stores the results of some (relatively) computational intensive calculations as object attributes. While Core Data is great, it really annoys me that I have to trash my current persistent store whenever I make a change

Re: NSXML & Auto Release Pools

2009-02-04 Thread Michael Ash
On Wed, Feb 4, 2009 at 3:23 PM, Alan Shouls wrote: > Hi James, > >> The NSXML object is probably calling autorelease on something in its >> dealloc method (this is perfectly legal, and should generally be seen as >> implementation detail - you're just seeing a side effect of it here). > > Right -

Re: Confused about NSTrackingAreas with autoscroll

2009-02-04 Thread Luke Evans
Well, it's beyond any doubt in my mind now: my view's tracking areas are not adjusted when I'm performing a drag operation and during this operation an autoScroll is performed (in response to the user dragging outside the visible rect of the view/clipView within the local scrollView). Cal

Re: NSService - I need a headslap

2009-02-04 Thread Michael Ash
On Wed, Feb 4, 2009 at 10:03 AM, Steve Cronin wrote: > Well, sheesh - that's embarrassing! There is no 'self' until init - I know > that! Ugh. Sure there is. There's a 'self' in every method. It refers to the receiver of the message that was sent. In instance methods, 'self' refers to the inst

Re: [Q] Control over the "You cannot use the application ... with this version of Mac OS X" string

2009-02-04 Thread Michael Ash
On Wed, Feb 4, 2009 at 1:44 PM, Sean McBride wrote: > On 2/4/09 10:24 AM, Joar Wingfors said: > >>> When launching an application which requires a newer version of the >>> OS, the OS displays the string: >>> >>>"You cannot use the application "XXX" with this version of Mac OS >>> X." >>> >>> I

Re: NSService - I need a headslap

2009-02-04 Thread Steve Cronin
Peter; I think I may have found into the core issue for me: I don't have a xib file in this stand-alone app. In main.m the invocation of NSApplicationMain() is equivalent to: void NSApplicationMain(int argc, char *argv[]) { [NSApplication sharedApplication]; [NSBundle loadNibNamed:@"myMa

Re: NSService - I need a headslap

2009-02-04 Thread Peter Ammon
On Feb 4, 2009, at 1:23 PM, Steve Cronin wrote: NSMenuItem Menu item title MyService The key here needs to be "default" instead of "Menu item title". This

Re: NSBezierPath (Modifying Paths)

2009-02-04 Thread Graham Cox
I just thought I'd throw my 2¢ worth in here, since I've been down this very long road in great detail while building DrawKit, so I've learned a thing or two about this. On 5 Feb 2009, at 5:54 am, Joseph Crawford wrote: You make some very good points. Let me first start out by saying I wa

Re: NSBezierPath (Modifying Paths)

2009-02-04 Thread Rob Keniger
On 05/02/2009, at 10:11 AM, Graham Cox wrote: You can download a very bare-bones demo app that also shows how DK implements curve creation/editing among others here:http://apptree.net/code/dk/Binaries/DKMiniDemo_app_1.2.zip ...which, by the way, is one hell of an impressive "bare bones demo

Interface Builder Nested Object Selection

2009-02-04 Thread Richard Somers
In Interface Builder to select a nested object in a view hierarchy you drill down by using the click-wait-click approach. How do you back up the other direction without deselecting and starting the drill down all over again? Richard ___ Cocoa-de

Re: Update an existing Core Data store when the model changes?

2009-02-04 Thread Hal Mueller
http://developer.apple.com/documentation/Cocoa/Conceptual/CoreDataVersioning/Introduction/Introduction.html Hal ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mo

Full Screen Mode With MenuBar

2009-02-04 Thread Adam Gerson
I am looking to implement a fullscreen window while showing the menubar. The consensus is that NSView's enterFullScreenMode is buggy and doesn't support showing the menu bar. What is the alternative? Are there any good examples out there? I have done many google searches and read through the archiv

Re: Interface Builder Nested Object Selection

2009-02-04 Thread Joey Hagedorn
Richard, On Feb 4, 2009, at 5:24 PM, Richard Somers wrote: In Interface Builder to select a nested object in a view hierarchy you drill down by using the click-wait-click approach. How do you back up the other direction without deselecting and starting the drill down all over again? One t

Re: Interface Builder Nested Object Selection

2009-02-04 Thread Jonathan Hess
Hey Richard - Try "shift-right-click" or "shift-control-left-click" to see a context menu of everything under the mouse. Alternatively, see the "Tools->Select Parent" menu item with a key equivalent of command+control+Up Arrow. Good Luck - Jon Hess On Feb 4, 2009, at 5:24 PM, Richard Som

Re: Full Screen Mode With MenuBar

2009-02-04 Thread Seth Willits
On Feb 4, 2009, at 5:26 PM, Adam Gerson wrote: I am looking to implement a fullscreen window while showing the menubar. The consensus is that NSView's enterFullScreenMode is buggy and doesn't support showing the menu bar. What is the alternative? Are there any good examples out there? I have don

Re: Confused about NSTrackingAreas with autoscroll

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 14:55, Luke Evans wrote: Calling my own -updateTrackingAreas when I know the autoscroll has occurred does not help at all - I can see the rectangles being constructed with the correct locations, but the view still sends events as if the scroll offsets within the clipView

Re: Confused about NSTrackingAreas with autoscroll [WORKAROUND]

2009-02-04 Thread Luke Evans
OK, FWIW for the record here is the resolution I've arrived at: mouseEntered and mouseExited events from tracking areas that are active when mouse dragging begins are dysfunctional in the drag, specifically when autoscrolling at the boundaries of the cliprect. I have a drag event loop per

Saving application data in ~/Library/Application Support/

2009-02-04 Thread Josh de Lioncourt
Hi, I have some products under development written in C++. I am not using Cocoa for the most part, as these are cross-platform projects. The apps themselves need to save, store, and access information, such as registration keys, user preferences, etc. It seems to me that the logical pla

Re: Saving application data in ~/Library/Application Support/

2009-02-04 Thread Shawn Erickson
On Wed, Feb 4, 2009 at 6:05 PM, Josh de Lioncourt wrote: > Hi, > > I have some products under development written in C++. I am not using Cocoa > for the most part, as these are cross-platform projects. Review... http://developer.apple.com/DOCUMENTATION/Cocoa/Conceptual/LowLevelFileMgmt/Tasks/Lo

Re: Saving application data in ~/Library/Application Support/

2009-02-04 Thread Graham Cox
On 5 Feb 2009, at 1:05 pm, Josh de Lioncourt wrote: Hi, I have some products under development written in C++. I am not using Cocoa for the most part, as these are cross-platform projects. The apps themselves need to save, store, and access information, such as registration keys, user p

Re: Saving application data in ~/Library/Application Support/

2009-02-04 Thread Graham Cox
On 5 Feb 2009, at 1:26 pm, Graham Cox wrote: a category extending NSFolderManager I meant NSFileManager --G ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact t

Re: Confused about NSTrackingAreas with autoscroll

2009-02-04 Thread Luke Evans
This really does sound like a coordinate system issue after all. It may be a bug, or it may be correct but surprising behavior, or it may be a gray area of expectation. It seems worth a bug report to try to find out. Indeed, I'll file one with as clear a description of the scenario as I c

RE: why popupbuttoncell always select second item in tableview ?

2009-02-04 Thread Yang Mu
thanks Corbin, greate help !! I return [cell objectValue] now . it works fine> Subject: Re: why popupbuttoncell always select second item in tableview ?> From: corb...@apple.com> CC: cocoa-dev@lists.apple.com> Date: Wed, 4 Feb 2009 09:30:26 -0800> To: david0...@msn.com> > Howdy,> > > On Feb 4,

RE: why popupbuttoncell always select second item in tableview ?

2009-02-04 Thread Yang Mu
How to implement difference popup items in each row in table view? I want to make popup cell related to others. so different row show different pop cell. but table view only can set datacell to column, how to set datacell to row? From: david0...@msn.comto: corb...@apple.comcc: cocoa-..

Re: nsarraycontroller "auto rearrange content"

2009-02-04 Thread Chris Anderson
I was able to work around it by unchecking "auto rearrange content" and calling rearrageObjects directly. But I'd still like to know if anyone knows why this happens or if it's a bug. C. On 3-Feb-09, at 1:40 PM, Chris Anderson wrote: Hello, Been bashing my head on this one. Did lots of

Memory management question in Objective-C 2.0 @property notation

2009-02-04 Thread Devraj Mukherjee
Hi all, I have a few classes that form the domain logic of my application and comprise of objects of NSNumber, NSDate, NSString. I initialize these with new objects in the init message of each of these classes. These properties are defined using the @property (nonatomic, retain) and @synthesize d

Re: Confused about NSTrackingAreas with autoscroll

2009-02-04 Thread Quincey Morris
On Feb 4, 2009, at 19:28, Luke Evans wrote: Mmm. I'm going to have to check with you what this "fudgy thing" actually is, in case I'm not doing something that is required (officially or conventionally) to make things work. Certainly, I was doing all my autoscroll during receipt of NSPerio

Re: Memory management question in Objective-C 2.0 @property notation

2009-02-04 Thread Kiel Gillard
Hi Devraj, If you have declared and synthesized a property: @property (retain, nonatomic) NSString *name; ...then any value assigned to name will retain it. Therefore, to initialise it, you could do something like: self.name = [NSString string]; However, doing this will yield a memory leak:

Re: Memory management question in Objective-C 2.0 @property notation

2009-02-04 Thread Chris Suter
Hi Kiel, On Thu, Feb 5, 2009 at 4:10 PM, Kiel Gillard wrote: > However, doing this will yield a memory leak: > self.name = [[NSString alloc] init]; > > ...because the property definition tells the compiler the methods it > synthesizes should retain the value. You're right that it will leak in t

Re: Memory management question in Objective-C 2.0 @property notation

2009-02-04 Thread Kiel Gillard
On 05/02/2009, at 4:20 PM, Chris Suter wrote: On Thu, Feb 5, 2009 at 4:10 PM, Kiel Gillard wrote: However, doing this will yield a memory leak: self.name = [[NSString alloc] init]; ...because the property definition tells the compiler the methods it synthesizes should retain the value. Y