Re: Network Reachability

2010-01-30 Thread Michael Ash
On Fri, Jan 29, 2010 at 2:37 PM, Jens Alfke wrote: > > On Jan 29, 2010, at 11:12 AM, Laurent Daudelin wrote: > >> I was able to determined that when the connection is down, I found out that >> kSCNetworkFlagsConnectionRequired was true, so it seems to work. It's just >> difficult to determine wh

Re: Loading of Mach-O executable files.

2010-01-30 Thread Jean-Daniel Dupas
Le 29 janv. 2010 à 16:58, Richard Penwell a écrit : > Dear list, > > I've been toying around with some problems in the world of dynamic code > loading... (a vast and mythical place). I understand that there is a > fundamental difference between Mach-O executables and Mach-O dynamic > librarie

Re: dock tile overlay image

2010-01-30 Thread Jean-Daniel Dupas
Le 29 janv. 2010 à 17:02, Felipe Heidrich a écrit : > Using Carbon I can place overlay images on the application dock tile by > calling OverlayApplicationDockTileImage(). > > Is it possible to do the same using Cocoa ? > I read NSDockTile and NSApplication Class Reference and I'm afraid the > an

Re: Loading of Mach-O executable files.

2010-01-30 Thread Greg Parker
On Jan 29, 2010, at 7:58 AM, Richard Penwell wrote: > I've been toying around with some problems in the world of dynamic code > loading... (a vast and mythical place). I understand that there is a > fundamental difference between Mach-O executables and Mach-O dynamic > libraries (beyond the obv

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Quincey Morris
On Jan 29, 2010, at 22:52, Jerry Krinock wrote: > In "Cocoa Bindings Programming Topics" ▸ "What Are Cocoa Bindings" ▸ > "Supporting Technologies", I read: > > "A binding is established with a bind:toObject:withKeyPath:options: >message which tells the receiver to keep its specified attrib

Re: Displaying animated content in iPhone app

2010-01-30 Thread patrick machielse
Op 28 jan 2010, om 18:35 heeft David Duncan het volgende geschreven: > On Jan 28, 2010, at 6:22 AM, patrick machielse wrote: > >> - I've seen mentioned that movie playback inside a view is not currently >> supported in the frameworks. I've also not found support for movie file >> formats (you c

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Keith Duncan
> 1. The word "binding" is ambiguous. It refers on the one hand to the behavior > of a class that allows it to synchronize some attribute (such as a property, > but it could be something internal like an instance variable) to a property > of target objects. It also refers on the other hand to th

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Richard Somers
On Jan 30, 2010, at 4:24 AM, Quincey Morris wrote: Does that throw any light on the matter? Yes! --Richard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Highlighting search results in table

2010-01-30 Thread Grant Christensen
Hi All, I have a NSTableView bound to an array controller. I am using an NSSearchField to create a predicate for my search, and setting it on the array controller. All works perfect. I was wondering if there is any simple way to actually highlight the portion of the text matching in the rele

Re: Returning a nil float?

2010-01-30 Thread Chunk 1978
thanks. NAN seems to be the simplest solution. On Fri, Jan 29, 2010 at 10:00 PM, Greg Guerin wrote: > Chunk 1978 wrote: > >> so above i'd like to write "if (!sound) return nil;".  my reasoning is >> because some attributes to a sound object (like pan) are created only >> when the sound is initia

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Jerry Krinock
Keith, thanks for your comments too. On 2010 Jan 30, at 03:24, Quincey Morris wrote: > Does that throw any light on the matter? Obviously, yes. Now let me try and answer my original questions... > How do you know when a binding is going to be unidirectional or bidirectional You must study the

Re: Returning a nil float?

2010-01-30 Thread vincent habchi
Le 30 janv. 2010 à 16:11, Chunk 1978 a écrit : > thanks. NAN seems to be the simplest solution. At the same time, if your float is supposed to lie in the range [x, y], returning any float outside this range (and not necessarily a NAN) can mean whatever you want. Vincent___

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Keith Duncan
>> Why are bindings A, B, C and D bidirectional but E is only unidirectional? > > Regarding A, B, C and D: Apparently, NSButton's implementation of bind > sets up observers in both directions when binding to the "value" binding. This isn't what happens, run the following code: > static NSSt

Re: Tabbed windows

2010-01-30 Thread Jens Alfke
On Jan 29, 2010, at 3:40 PM, John Nairn wrote: > Is it possible for non-Apple program to integrate into the tool bar of the > window? Google Chrome has tabs that are actually integrated into the title bar. It requires some fairly nasty hacking (splicing methods into private classes) so I woul

Re: Working with external drives with Cocoa.

2010-01-30 Thread Jens Alfke
On Jan 29, 2010, at 9:16 AM, Wilersh wrote: > Is there is a way to work with external drives inside cocoa as you might at > the command line with diskutil. As with many things, there's no Objective-C API for it, but you can use all the lower level C APIs and system calls. I'm not sure what th

Re: Tabbed windows

2010-01-30 Thread Boyd Collier
Take a look at http://www.positivespinmedia.com/dev/PSMTabBarControl.html Maybe this would satisfy your needs. Boyd On Jan 29, 2010, at 3:40 PM, John Nairn wrote: > I tried to find a way to do tabbed windows like Safari. Since they appear > integrated into the window title bar, I thought they m

Re: Tabbed windows

2010-01-30 Thread PCWiz
One way to do it (the way Chrome does it, if I'm not mistaken) is to add the toolbar view as a subview of NSThemeFrame. NSThemeFrame is a private subclass of NSView that can be accessed by using [[yourWindow contentView] superview]. Note, however, that this is entirely undocumented so use it at

Re: bind:toObject:withKeyPath:options: Unidirectional or Bidirectional?

2010-01-30 Thread Jerry Krinock
On 2010 Jan 30, at 09:12, Keith Duncan wrote: >>> Why are bindings A, B, C and D bidirectional but E is only unidirectional? >> >> Regarding A, B, C and D: Apparently, NSButton's implementation of bind >> sets up observers in both directions when binding to the "value" binding. > > This is

Google Irvine open house on the Jan 27th.

2010-01-30 Thread Scott Ellsworth
I wanted to extend my thanks to the people who attended our open house last week. The turnout among OCJug and Cocoaheads members was quite impressive, and higher than usual for such an event. As mentioned at the time, if you want to submit a resume, ping me at f...@google.com. I am also willing

Detect Tap on Word in UILabel?

2010-01-30 Thread Samuel Ford
Is it possible to detect which word was tapped in a UILabel in Cocoa Touch? It seems like it should be a pretty easy thing to do, but I'm stuck. Anybody ever try to do this? I know you can measure a string and get the bounding box that contains it; likewise, looking at the UITextInput protocol

NSTextView Drag and Drop

2010-01-30 Thread Jon Buys
Hello, What is the best way to get access to the file that is dropped on an NSTextView. I don't want to embed the file in the view, but I'd like to copy the file somewhere else and add arbitrary text in its place. I'm thinking I should be looking at NSTextAttachment, but I'm not sure if I'm b

Re: Detect Tap on Word in UILabel?

2010-01-30 Thread Roland King
no I don't think there is a way to do it directly. your best solution if you want to do this is subclass UILabel, draw the actual label yourself and then use the knowledge of how you drew it to figure out the closest character to the touch, if you just make a simple subclass like that, you can

Re: Node hierarchy with subclasses

2010-01-30 Thread John Harte
On Jan 29, 2010, at 9:38 AM, Jerry Krinock wrote: >> The problem is that when a subclass A is selected, the UI elements bound to >> subclass B no longer have valid bindings so generate an error. How can I >> solve this? > > In your tab view's delegate, implement tabView:willSelectTabViewItem:,