Re: NSTextField selection customization

2010-06-15 Thread vincent habchi
Jens, Graham, > Note that NSTextView has: - > (void)setSelectionGranularity:(NSSelectionGranularity)granularity Yes, I saw that, it's a nice method. > which might be all you need - just set it to NSSelectByWord every time you > change the selection. This will keep getting reset so something wi

Re: NSTextField selection customization

2010-06-15 Thread Graham Cox
On 16/06/2010, at 6:16 AM, vincent habchi wrote: > Le 15 juin 2010 à 21:58, Jens Alfke a écrit : > >> You’ll end up working with NSTextView regardless. NSTextField doesn’t do its >> own text editing, it overlays a text view called the ‘field editor’ that’s >> used by all controls in the window

Re: Service without Icon or Window?

2010-06-15 Thread Peter Ammon
On Jun 15, 2010, at 2:56 PM, Lightning Duck wrote: > I need to make an application that runs a bit as a 'service' if you will. > Not in the sense of running from the "Services" menu but something the tuns > continually in the background with an Icon in the Dock or a Window of it's > own, tha

Re: Service without Icon or Window?

2010-06-15 Thread Kyle Sluder
On Tue, Jun 15, 2010 at 2:56 PM, Lightning Duck wrote: > I need to make an application  that runs a bit as a 'service' if you will.   > Not in the sense of running from the "Services" menu but something the tuns > continually in the background with an Icon in the Dock or a Window of it's > own,

Re: Service without Icon or Window?

2010-06-15 Thread Jerry Krinock
On 2010 Jun 15, at 14:56, Lightning Duck wrote: > Monitor the contents of a directory Either a Kernel Queue or FSEvents. Read this: http://developer.apple.com/mac/library/documentation/Darwin/Conceptual/FSEvents_ProgGuide/KernelQueues/KernelQueues.html > Run without visibility? Start by read

Core Data : Managed Object Models : Configurations, Versions

2010-06-15 Thread Jerry Krinock
In the Core Data Programming Guide > Managed Object Models, "A persistent store coordinator can only have one managed object model, so by default each store associated with a given coordinator must contain the same entities. To work around this restriction ... You typically use configurations

[iPhone] Determining minimum height for a UIWebView

2010-06-15 Thread WT
Hello, I'm trying to find out how to set the height of a UIWebView instance, given its content, so that the user doesn't need to scroll the UIWebView itself to see that content. Of course, the content might not fit in the vertical space available but the UIWebView instance is part of a tablevie

Service without Icon or Window?

2010-06-15 Thread Lightning Duck
I need to make an application that runs a bit as a 'service' if you will. Not in the sense of running from the "Services" menu but something the tuns continually in the background with an Icon in the Dock or a Window of it's own, that monitors when files are added or removed from a directory

Re: NSTextField selection customization

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 1:16 PM, vincent habchi wrote: > Thanks for the answer, that's what I suspected. Before getting on, what, in > your opinion, is the most handy solution? In order, what would you advise : > NSTextView or a custom field editor? I think I’d go with the custom field editor, sin

Re: NSTextField selection customization

2010-06-15 Thread vincent habchi
Le 15 juin 2010 à 21:58, Jens Alfke a écrit : > You’ll end up working with NSTextView regardless. NSTextField doesn’t do its > own text editing, it overlays a text view called the ‘field editor’ that’s > used by all controls in the window. So to make this work in a text field > you’d need to cr

Re: Locating Frameworks

2010-06-15 Thread F van der Meeren
I did, an hour before hitting this maillist, no response yet. On 15 Jun 2010, at 21:56, Jens Alfke wrote: > > On Jun 15, 2010, at 12:49 PM, F van der Meeren wrote: > >> My guess is that the SDK overrules my own choice, in favor of the 2.6 >> version. Do you have any clue on how to fix this? >

Re: NSTextField selection customization

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 12:48 PM, vincent habchi wrote: > I'd like to customize the way an NSTextField works, especially the selection > mechanism (I'd would like the selection to break only at word boundaries, > instead of at every character). Is this possible, or shall I turn to the > bigger and

Re: Locating Frameworks

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 12:49 PM, F van der Meeren wrote: > My guess is that the SDK overrules my own choice, in favor of the 2.6 > version. Do you have any clue on how to fix this? Huh, no, that’s weird. You should ask on the xcode-users mailing list, as it sounds like a tools issue. —Jens__

Re: Locating Frameworks

2010-06-15 Thread F van der Meeren
On 15 Jun 2010, at 18:43, Jens Alfke wrote: > > On Jun 15, 2010, at 9:19 AM, F van der Meeren wrote: > >> I am trying to link to the Python.framework. >> According to the manpages the framework directories are searched in the >> following order: >> "The default framework search path is /Libra

NSTextField selection customization

2010-06-15 Thread vincent habchi
Hi there, I'd like to customize the way an NSTextField works, especially the selection mechanism (I'd would like the selection to break only at word boundaries, instead of at every character). Is this possible, or shall I turn to the bigger and bulkier NSTextView? Thanks, Vincent__

Re: How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread Isaac Wankerl
On Tue, Jun 15, 2010 at 12:28 PM, Kyle Sluder wrote: > On Tue, Jun 15, 2010 at 10:14 AM, Jens Alfke wrote: > > That’s not true — you can access the apps’ interchange files, which are > just > > regular property lists. (For example, ~/Music/iTunes/iTunes Music > > Library.xml.) These files are ex

Re: How to Access iPhoto,iTunes and iMove Playlist

2010-06-15 Thread Roni Music
On Tue, Jun 15, 2010 at 10:14 AM, Jens Alfke wrote: That's not true - you can access the apps' interchange files, which are just regular property lists. (For example, ~/Music/iTunes/iTunes Music Library.xml.) These files are explicitly provided for data interchange - they're not the actual d

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-15 Thread Corbin Dunn
On Jun 15, 2010, at 10:55 AM, Jens Alfke wrote: > > On Jun 15, 2010, at 10:51 AM, Jerry Krinock wrote: > I send noteHeightOfRowsWithIndexesChanged: after updating the contents of the > array controller to which a table is bound, but I still see little artifacts > sometimes. It's in a rarely-

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 10:51 AM, Jerry Krinock wrote: >> There are usually about 200,000 rows, so calculating the actual height for >> all rows is not an option (since it takes about 19 seconds). > > you may have exceeded the capabilities of NSTableView's variable heights I agree. Variable row he

Re: Where to noteHeightOfRowsWithIndexesChanged

2010-06-15 Thread Jerry Krinock
On 2010 Jun 15, at 04:26, Tony P wrote: > I've not found a good place to put noteHeightOfRowsWithIndexesChanged. I get > either overlapping rows or some blank rows during scroll. ... Any ideas > anyone? I send noteHeightOfRowsWithIndexesChanged: after updating the contents of the array contr

Re: How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 10:28 AM, Kyle Sluder wrote: > I don't believe that was ever made explicit. I've always operated > under the presumption that those XML files were for the sole use of > the iLife apps and the media browser. Regardless, there are a jillion 3rd party apps that read those plists

Re: How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread Kyle Sluder
On Tue, Jun 15, 2010 at 10:14 AM, Jens Alfke wrote: > That’s not true — you can access the apps’ interchange files, which are just > regular property lists. (For example, ~/Music/iTunes/iTunes Music > Library.xml.) These files are explicitly provided for data interchange — > they’re not the actual

Re: How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 9:54 AM, Kyle Sluder wrote: > As was covered over on MacOSX-Dev, the only supported way to do this > is with Apple Events, using something like AppleScript or Scripting > Bridge. That’s not true — you can access the apps’ interchange files, which are just regular property li

Re: How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread Kyle Sluder
On Tue, Jun 15, 2010 at 2:35 AM, JanakiRam Palepu wrote: > I would need to access iTunes , iPhoto and iMovie application's playlist > information and show them in my Cocoa Application ( Mac OS version can be > 10.6). > > Can any one suggest me the ways to implement this feature in my Cocoa app. A

How to Access iPhoto,iTunes and iMove Playlist Information

2010-06-15 Thread JanakiRam Palepu
Hi All, I would need to access iTunes , iPhoto and iMovie application's playlist information and show them in my Cocoa Application ( Mac OS version can be 10.6). Can any one suggest me the ways to implement this feature in my Cocoa app. Thanks, Johny _

Image pinching and double tapping issue

2010-06-15 Thread SanthoshKumarGundu
Hi, I have an issue with the scrollview zooming. In my application I have an image which is added to the scrollview. I want to have zooming effect when user double taps and also pinching . The issue I am facing is when double taps , the image is zooming (zoomed to maximum zoomscale) , b

Re: Locating Frameworks

2010-06-15 Thread Jens Alfke
On Jun 15, 2010, at 9:19 AM, F van der Meeren wrote: > I am trying to link to the Python.framework. > According to the manpages the framework directories are searched in the > following order: > "The default framework search path is /Library/Frameworks then > /System/Library/Frameworks.” If y

Re: Locating Frameworks

2010-06-15 Thread F van der Meeren
That didn't do much for me. It seems that the /Library/Frameworks path is overwritten at runtime by its the second in line /System/Library/Frameworks. On 15 Jun 2010, at 18:06, jonat...@mugginsoft.com wrote: > > > On 15 Jun 2010, at 14:58, F van der Meeren wrote: > >> Hi, >> >> I am trying

Re: Locating Frameworks

2010-06-15 Thread jonat...@mugginsoft.com
On 15 Jun 2010, at 14:58, F van der Meeren wrote: > Hi, > > I am trying to link to the Python.framework. > According to the manpages the framework directories are searched in the > following order: > "The default framework search path is /Library/Frameworks then > /System/Library/Frameworks.

Re: Question about fading a UISlider

2010-06-15 Thread Luke Hiesterman
You can try setting shouldRasterize = YES on the layer. Luke Sent from my iPhone. On Jun 15, 2010, at 6:08 AM, "Eric E. Dolecki" wrote: > I am animating the alpha of a UISlider, and you can see that the UI is > actual composed of two rounded rectangles with a round button above the > union po

Locating Frameworks

2010-06-15 Thread F van der Meeren
Hi, I am trying to link to the Python.framework. According to the manpages the framework directories are searched in the following order: "The default framework search path is /Library/Frameworks then /System/Library/Frameworks." Running my code: Py_Initialize(); PyRun_SimpleString("import sy

Question about fading a UISlider

2010-06-15 Thread Eric E. Dolecki
I am animating the alpha of a UISlider, and you can see that the UI is actual composed of two rounded rectangles with a round button above the union point. Is there a layer mode (like blendMode.LAYER in Flash's AS3)? So that you can't see the guts of the control as it's faded. Thanks.

Re: Custom NSCell mouse events

2010-06-15 Thread Michael Hanna
Thanks for the suggestion Corbin. It looks like I'm doing everything OK with creation and destruction though. Here is my code: - (id)init { if ((self = [super init])) { _checkboxCell = [[NSButtonCell alloc] init]; [_checkboxCell setButtonType:NSSwitchButton]; [_checkbox

Where to noteHeightOfRowsWithIndexesChanged

2010-06-15 Thread Tony P
Where's the best place to put noteHeightOfRowsWithIndexesChanged to keep a tableview display correct whilst scrolling? The tableview has variable height rows, and because of a relatively slow data source, resizing and user control of fonts, etc, I don't know the row height in advance. I'm c