Re: Problem with capturing active state of the application

2009-06-18 Thread Andrew Farmer
On 17 Jun 2009, at 22:49, Srinivasa Prabhu wrote: In our application we want to capture a selected area similar to Apple's Cmd+Shift+4 i.e during selection capture, the active state of another application has to be captured. ... Is there any workaround to capture the active state of the

Re: Group CGAffineTransform Animations?

2009-06-18 Thread Chunk 1978
thanks to everyone for your input. i've learned quite a lot! an interesting topic indeed :). thanks again. On Thu, Jun 18, 2009 at 1:45 AM, WTjrca...@gmail.com wrote: Hi David, On Jun 18, 2009, at 12:42 AM, David Duncan wrote: Your solution works because you've scaled the coordinate

Re: Problem with capturing active state of the application

2009-06-18 Thread Srinivasa Prabhu
Thanks Andrew. We looked into the link. However if our application is not active and the user enters the selection capture mode using Hot Keys, how do we capture the active state of close, minimize, zoom, scroll buttons of the application currently on screen? Since we put up a

Re: MobileMe API for uploading photos

2009-06-18 Thread Rimas M.
Hello, Ok. It is possible to access iDisk itself - list content, create folders, files etc. But I am wondering what to do, that MobileMe gallery would show uploaded photos? How to create new album in this gallery manually and upload photos to it? Any help is appreciate. Best Regards, Rimas M.

What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Chilton Webb
Hi, In an effort to create a less structured set of IB objects, I would like to 'tag' various IB elements. For example, I might want to add a specific tag to a group of objects that I might later want to show or hide. I might want to grab values from only objects that contain some key

Re: advice on background process

2009-06-18 Thread Rick C.
thanks again. yes after reviewing everything that would seem to be the best way to go for me. am i on the right track thinking i could write a foundation tool maybe using fsevents to screen the changes of a directory and then if necessary pass along the info and/or launch my main app? if so

[iPhone] TableView with the new iPhone OS 3.0 Spotlight search look?

2009-06-18 Thread Påhl Melin
Hi, Have you noticed the new table view style used in the Spotlight search screen in iPhone OS 3.0? The table view has rounded corners like the grouped style but where the actual content *within* the group is scrolled and the icons in the left column are positioned in the top left corner while

Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
I have a window (displayed as a sheet) with a text field and some other controls. I can not set the binding mode to continuous so I use non continuous binding. Everything works fine as long as I press tab and switch to a different control. However when the the text field is the key view and I

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ken Thomases
On Jun 18, 2009, at 9:49 AM, Ramakrishna Vavilala wrote: I have a window (displayed as a sheet) with a text field and some other controls. I can not set the binding mode to continuous so I use non continuous binding. Everything works fine as long as I press tab and switch to a different

Re: MobileMe API for uploading photos

2009-06-18 Thread Rimas M.
Yes, I have followed your suggestion and I am using one of them to access iDisk. My question would be - what should I do, that my uploaded photos would be visible through http://gallery.me.com/ USERNAME. Or at least http://www.me.com/gallery/#home, when I am logged in. I am talking about

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
Unfortunately, I used incorrect design by binding text field to properties of the file's owner (which happens to be a NWindowController) which does not respond to commitEditing message. Any other ideas? On Thu, Jun 18, 2009 at 8:21 AM, Ken Thomasesk...@codeweavers.com wrote: On Jun 18, 2009, at

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Clark S. Cox III
Then change that and do the right thing. :) Just add an intermediate NSObjectController to your nib in between your bound field and the file's owner. Sent from my iPhone On Jun 18, 2009, at 9:17, Ramakrishna Vavilala vrk.li...@gmail.com wrote: Unfortunately, I used incorrect design by

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ken Thomases
On Jun 18, 2009, at 11:17 AM, Ramakrishna Vavilala wrote: Unfortunately, I used incorrect design by binding text field to properties of the file's owner (which happens to be a NWindowController) which does not respond to commitEditing message. Any other ideas? Fix the design? It should be

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Benjamin Stiglitz
I'm working on a project that works a lot with Spotlight, and we're trying to get a list of all the attributes that Spotlight knows about. We found a really nice function called MDSchemaCopyAllAttributes that returns a CFArrayRef of CFStringRefs, each one corresponding to a spotlight

[iPhone]MKAnnotation of showUserLocation-getting a reference to my own location pin

2009-06-18 Thread James Lin
Hi all... Anyone playing with MKMapView? I am trying to set the pin color of my location to be red. and set other annotations to another color. But I am having trouble getting a reference to the pin that denotes my location. because this pin is generated by showUserLocation and not by

Re: Group CGAffineTransform Animations?

2009-06-18 Thread David Duncan
On Jun 17, 2009, at 10:45 PM, WT wrote: If the center is in the superview's coordinate system, how can it not be changed by a translation? Because the center is only 1 part in the chorus of things that determines where your view is. All of this really translates to Core Animation under

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Ramakrishna Vavilala
That works well. I eventually implemented - (void)objectDidBeginEditing:(id)editor and - (void)objectDidEndEditing:(id)editor It works like a charm. I agree that the better design would be to use an object controller. But I was also trying to understand how the whole binding thing works so it

NSInterger Infinity?

2009-06-18 Thread Chunk 1978
i would like to set an AnimationRepeatCount to loop continuously. what is an appropriate number to set? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Dave DeLong
This application *is* the privileged helper process, and it needs to know about all the Spotlight attributes that spotlight has. The problem is that Spotlight doesn't seem to like the root user. For example, in Terminal I can run mdimport -X and get a dump of the Spotlight schema information.

Re: NSInterger Infinity?

2009-06-18 Thread Nick Zitzmann
On Jun 18, 2009, at 11:02 AM, Chunk 1978 wrote: i would like to set an AnimationRepeatCount to loop continuously. what is an appropriate number to set? If you're using UIImageView, then setting the value to 0 will make it loop indefinitely... Nick Zitzmann http://www.chronosnet.com/

Re: NSInterger Infinity?

2009-06-18 Thread Chunk 1978
i'll certainly use your advice in the future, thanks. however, i'm currently just setting a UIView within the animation block and setting 0 plays the animation only one tim On Thu, Jun 18, 2009 at 1:07 PM, Nick Zitzmannn...@chronosnet.com wrote: On Jun 18, 2009, at 11:02 AM, Chunk 1978 wrote:

Re: NSInterger Infinity?

2009-06-18 Thread Chunk 1978
perfect. thanks :) On Thu, Jun 18, 2009 at 1:15 PM, Nick Zitzmannn...@chronosnet.com wrote: On Jun 18, 2009, at 11:10 AM, Chunk 1978 wrote: i'll certainly use your advice in the future, thanks.  however, i'm currently just setting a UIView within the animation block and setting 0 plays the

Re: NSInterger Infinity?

2009-06-18 Thread WT
On Jun 18, 2009, at 7:02 PM, Chunk 1978 wrote: i would like to set an AnimationRepeatCount to loop continuously. what is an appropriate number to set? You could use NSIntegerMax. Although finite, it's so large it might as well be considered infinitely large, in the context in question. I

Re: NSInterger Infinity?

2009-06-18 Thread Chunk 1978
agreed. the reason i asked is because i saw this snippet of code: repeatCount = 1e100f; and i just though that seems awfully ambiguous and hoped for something a little more universal. On Thu, Jun 18, 2009 at 1:35 PM, WTjrca...@gmail.com wrote: On Jun 18, 2009, at 7:02 PM, Chunk 1978 wrote: i

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Kyle Sluder
On Thu, Jun 18, 2009 at 10:03 AM, Dave DeLongdavedel...@me.com wrote: This application *is* the privileged helper process, and it needs to know about all the Spotlight attributes that spotlight has.  The problem is that Spotlight doesn't seem to like the root user. Why is the privileged

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Erik Buck
See the - (void)setRepresentedObject:(id)anObject method of NSCell.  You can set a string or dictionary and the represented object and retrieve it via -representedObject.   You can also instantiate an array and add objects to the array within IB.  Then you only need an outlet instance variable

Re: Group CGAffineTransform Animations?

2009-06-18 Thread WT
On Jun 18, 2009, at 6:39 PM, David Duncan wrote: On Jun 17, 2009, at 10:45 PM, WT wrote: If the center is in the superview's coordinate system, how can it not be changed by a translation? Because the center is only 1 part in the chorus of things that determines where your view is. All of

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Dave DeLong
This is the root tool that powers the Mozy backup product. One of the features is that users can specify queries to determine which files to back up. However, it needs to find all files across the system, and not just the users files. Hence, our backup utility has to run as root. Part

Re: Group CGAffineTransform Animations?

2009-06-18 Thread David Duncan
On Jun 18, 2009, at 11:01 AM, WT wrote: Ultimately, I have some rectangular area on the 2D screen of an iPhone or a Mac, and it has a center point (which, I understand, doesn't *have* to be halfway through the bounds), whose coordinates are measured in the coordinate system of the

Re: NSInterger Infinity?

2009-06-18 Thread Henry McGilton (Boulevardier)
On Jun 18, 2009, at 10:39 AM, Chunk 1978 wrote: agreed. the reason i asked is because i saw this snippet of code: repeatCount = 1e100f; and i just though that seems awfully ambiguous and hoped for something a little more universal. Nothing ambiguous at all --- it's about 2 * 10 ^ 82 times

Toggle Dock Icon

2009-06-18 Thread Charles E. Heizer
Hello, Does anyone know if there is a good way to toggle the dock icon? I have a reboot application that has problems at times with OS updates and not launching, due to libraries being updated. I was looking to solve this by launching my reboot application before the updates occur and just back

Strange problem with CFHash and CFEqual

2009-06-18 Thread Stefan
Hi, i have some trouble with some Core funtions and are out of ideas (after a whole day of searching, debugging and docs-reading) The problem could be simple described: I have 2 CGImageRef 'objects' which i have to compare. That is working fine with the CFEqual function. But i also need a

Strange problem with CFDataRef, CFHash and CFEqual

2009-06-18 Thread Stefan
Hi, i have some trouble with some Core funtions and are out of ideas (after a whole day of searching, debugging and docs-reading) The problem could be simple described: I have 2 CGImageRef 'objects' which i have to compare. That is working fine with the CFEqual function. But i also need a

Re: Toggle Dock Icon

2009-06-18 Thread Kyle Sluder
On Thu, Jun 18, 2009 at 11:33 AM, Charles E. Heizerheiz...@llnl.gov wrote: All of this is fairly easy to do except for; I want to toggle the dock icon's visibility when ready to reboot. I looked at the LSUIElement and this is nice but it also hides the menubar. If you found LSUIElement, you no

Strange problem with CFDataRef, CFHash and CFEqual

2009-06-18 Thread Stefan
Hi, i have some trouble with some Core funtions and are out of ideas (after a whole day of searching, debugging and docs-reading) The problem could be simple described: I have 2 CGImageRef 'objects' which i have to compare. That is working fine with the CFEqual function. But i also need a

Re: Strange problem with CFDataRef, CFHash and CFEqual

2009-06-18 Thread Stefan
*** Sorry for the double post *** Am 18.06.2009 um 20:43 schrieb Stefan: Hi, i have some trouble with some Core funtions and are out of ideas (after a whole day of searching, debugging and docs-reading) The problem could be simple described: I have 2 CGImageRef 'objects' which i have to

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread BJ Homer
In this particular instance, don't forget that Spotlight importers can live in ~/Library/Spotlight as well as within app bundles in ~/Applications. Any answer that MDSchemaCopyAllAttributes() would give you when running as root might be incorrect for the user who's actually the results.

Re: Strange problem with CFHash and CFEqual

2009-06-18 Thread David Duncan
On Jun 18, 2009, at 11:39 AM, Stefan wrote: I have 2 CGImageRef 'objects' which i have to compare. That is working fine with the CFEqual function. But i also need a valid (valid per contract) HashCode too. The problem is now that these hashcodes are _always_ 0 A 0 hash code is valid (if

Re: Group CGAffineTransform Animations?

2009-06-18 Thread WT
On Jun 18, 2009, at 8:19 PM, David Duncan wrote: On Jun 18, 2009, at 11:01 AM, WT wrote: Ultimately, I have some rectangular area on the 2D screen of an iPhone or a Mac, and it has a center point (which, I understand, doesn't *have* to be halfway through the bounds), whose coordinates

Re: Manually updating a data bound value of a bound text field

2009-06-18 Thread Matt Neuburg
On Thu, 18 Jun 2009 07:49:15 -0700, Ramakrishna Vavilala vrk.li...@gmail.com said: I have a window (displayed as a sheet) with a text field and some other controls. I can not set the binding mode to continuous so I use non continuous binding. Everything works fine as long as I press tab and switch

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Benjamin Stiglitz
Why is the privileged process asking Spotlight for anything? Try to factor as much code as possible out of your privileged tool. This is the root tool that powers the Mozy backup product. One of the features is that users can specify queries to determine which files to back up. However,

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Michael Ash
On Thu, Jun 18, 2009 at 1:59 PM, Erik Buckerik.b...@sbcglobal.net wrote: You can also instantiate an array and add objects to the array within IB.  Then you only need an outlet instance variable to reference the array and not separate instance variables for all of the user interface objects. 

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Kyle Sluder
On Thu, Jun 18, 2009 at 1:45 PM, Michael Ashmichael@gmail.com wrote: Since the last update on that page is from the Panther era, and since Leopard's IB3 completely broke backwards compatibility with IB2 plugins, I'd say the chances of the Foundation Collections Palette still working are

Re: advice on background process

2009-06-18 Thread Jerry Krinock
On 2009 Jun 18, at 06:42, Rick C. wrote: thanks again. yes after reviewing everything that would seem to be the best way to go for me. am i on the right track thinking i could write a foundation tool maybe using fsevents to screen the changes of a directory and then if necessary pass

[ANN] BWToolkit 1.2 - IB Plugin

2009-06-18 Thread Brandon Walkin
Hi all, I've just released version 1.2 of BWToolkit with three new additions: a gradient box with customizable border and inset lines, a styled text field that lets you apply a gradient and a shadow to text, and a hyperlink button to link text or images to URLs. I've also added Snow

File-picker dialog?

2009-06-18 Thread Mac First
Sorry to be so out of touch -- it's been a while... Is NavServices still the preferred way to put up, say, a file-picker dialog? That is, is The Cocoa Way to do this: OSStatus NavCreateChooseFileDialog ( const NavDialogCreationOptions *inOptions, NavTypeListHandle inTypeList, NavEventUPP

Re: File-picker dialog?

2009-06-18 Thread Luke the Hiesterman
NSOpenPanel. http://developer.apple.com/documentation/Cocoa/Reference/ApplicationKit/Classes/NSOpenPanel_Class/Reference/Reference.html http://developer.apple.com/documentation/Cocoa/Conceptual/AppFileMgmt/Tasks/UsingAnOpenPanel.html#/ /apple_ref/doc/uid/2777 Luke On Jun 18, 2009, at

Re: File-picker dialog?

2009-06-18 Thread Dave Keck
NSOpenPanel is what you're looking for. ___ 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)lists.apple.com Help/Unsubscribe/Update

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Greg Guerin
Chilton Webb wrote: Is there a way to add a tag an IB object in such a way that it is not visible to the user, but in such a way that I could reference it from my app? Maybe the -tag method: it returns a 32-bit integer.. It's settable in IB as the control's tag value. I don't know if

There is an equivalent to NSLocalizedString with selectable locale?

2009-06-18 Thread Giacomo Tufano
I have a CocoaTouch app that's localized using NSLocalizedString() and NSLocalizedStringFromTable(). I would like to give the user the option to change language on some part of the program but I couldn't find any call or function for selecting the locale into the program. I found that I can

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Chilton Webb
Hi Greg! Thanks for writing back. On Jun 18, 2009, at 4:52 PM, Greg Guerin wrote: Is there a way to add a tag an IB object in such a way that it is not visible to the user, but in such a way that I could reference it from my app? Maybe the -tag method: it returns a 32-bit integer.. It's

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Greg Guerin
Chilton Webb wrote: It *would* be useful, but IB doesn't let you set it to a string in Cocoa. It's limited to numeric values, which makes it less useful for humans. For a bit of perspective, this is doable in *CARBON* apps, via the 'Command' attribute in Interface Builder. You can only

continuous spell checking, NSTextView / field editor, document tag

2009-06-18 Thread kvic...@pobox.com
i would like to have continuous spell checking available for many of my text fields and table/outline cells. i realize that this can be accomplished by call -[NSTextView setContinuousSpellCheckingEnabled:] for the appropriate field editor. what i don't understand is how to specify the spell

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Ricky Sharp
On Jun 18, 2009, at 5:15 PM, Chilton Webb wrote: Hi Greg! Thanks for writing back. On Jun 18, 2009, at 4:52 PM, Greg Guerin wrote: Is there a way to add a tag an IB object in such a way that it is not visible to the user, but in such a way that I could reference it from my app? Maybe the

[RFC] NSScaleRect for AppKit Drawing Primitives

2009-06-18 Thread Grant Erickson
While a similar effect could be achieved using NSAffineTransforms, it seems like the following API is noticeably absent from the NSGeometry.h AppKit drawing primitives and one I would venture many have included in their own Cocoa toolkits: typedef enum { NSBottomLeftPoint,

Re: Enter Key Behavior in NSTableView

2009-06-18 Thread Raleigh Ledet
I don't think this is normal. When a field editor is up, the Return should go to the Field Editor's keyDown: method, not TV. (for both cases) Is your File's Owner overriding textShouldEndEditing:? and preventing the Field Editor from ending? -raleigh On Jun 17, 2009, at 4:03 PM, Chris

Re: Enter Key Behavior in NSTableView

2009-06-18 Thread Chris Tracewell
raleigh, I am not overriding textShouldEndEditing, but your suggestion did lead me to find that my File's Owner's superclass is implementing: -(BOOL)control:(NSControl*)control textView:(NSTextView*)textView doCommandBySelector:(SEL)commandSelector In there I had an if statement that was

Incompatible managed object model versions

2009-06-18 Thread Lynn Barton
I am programming a Core Data application, and testing it from time to time by importing a small amount of data. This was going well for a while, but after the latest changes to the data model the application produces the error message The managed object model version used to open the

Re: MDSchemaCopyAllAttributes() returning nil

2009-06-18 Thread Kyle Sluder
On Thu, Jun 18, 2009 at 11:04 AM, Dave DeLongdavedel...@me.com wrote: So, how can a root program get a complete list of Spotlight attributes? I don't think this is quite the question you want to ask. 1) As I mentioned before, the root program shouldn't need a list of Spotlight attributes. 2) Do

Re: Incompatible managed object model versions

2009-06-18 Thread Kyle Sluder
On Thu, Jun 18, 2009 at 6:19 PM, Lynn Bartonlynnbar...@mac.com wrote: I don't think that I saved any data while testing the app, but perhaps I did. Please  help me rescue this application. This message means that the managed object model changed. Rather than lossily loading pieces of the

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
Thanks for the information. Those frameworks seems very helpful for the future even though they are not solving my problem right now. Incidentally, I found out that I know the writer of HIMBIkAppKit personally. ;-) Thanks, On Thu, Jun 18, 2009 at 6:15 AM, Scott Andrew

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Sumin Kim
You need to place a view here and do the custom drawing in the view. To place the view, you need to subclass NSScrollView and override the -tile method to place the view in that corner. The scrollview subclass will also typically own the custom view. Here's an example from the archives

Tokenizing NSTextView content

2009-06-18 Thread Rob Keniger
Hi, I need to display a text view which will contain HTML-like syntax and allow the user to drag objects into the view. I have been able to use NSTextAttachment to handle the display of the dragged objects just fine, but what I want to do is restrict the user from dragging the object

moderator Re: [RFC] NSScaleRect for AppKit Drawing Primitives

2009-06-18 Thread Scott Anguish
radar is the only way to get these types of things addresssed. mind you, there are far less trivial (your word) thinks that time could be spent on. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: What is the best way to store some kind of identifying string in an interface builder object?

2009-06-18 Thread Andy Lee
On Jun 18, 2009, at 4:45 PM, Michael Ash wrote: On Thu, Jun 18, 2009 at 1:59 PM, Erik Buckerik.b...@sbcglobal.net wrote: [...] You can populate the array entirely within IB. Make any target/ action connections in IB. http://www.geocities.com/kritter_cocoadev/ Since the last update on that

Re: How to fill rectangle under vertical scroller?

2009-06-18 Thread Quincey Morris
On Jun 18, 2009, at 19:23, Sumin Kim wrote: Thanks for your information. I read your linked article, and tried to do the same thing. But, I am still in the problem. Where I want to draw a color is the area under vertical scroller but for the some reason, it seems that my new view is drawn

Re: Incompatible managed object model versions

2009-06-18 Thread Lynn Barton
On Jun 18, 2009, at 6:27 PM, Kyle Sluder wrote: On Thu, Jun 18, 2009 at 6:19 PM, Lynn Bartonlynnbar...@mac.com wrote: I don't think that I saved any data while testing the app, but perhaps I did. Please help me rescue this application. This message means that the managed object model