Re: Listening to Eject command

2009-07-30 Thread Rippit the Ogg Frog
Ed Wynne wrote: you want DA for DiskArbitration. DiskArbitration is unfortunately rather poorly documented. It will take some trial and error to figure out how to make it work for you. But there are some developer blogs that yield some insight... ... unfortunately the bookmarks I had fo

Re: Cahnging bgColor of a UIView not working.

2009-07-30 Thread Gustavo Pizano
Well in fact that was my mistake, I took the color picker, and didn't set the values as percentage, but as 8 bit rgb. G. On Jul 30, 2009, at 6:36 AM, Alan Rogers wrote: Check out http://www.panic.com/~wade/picker/ For a 'Developer Friendly' colour picker :P Al On 30/07/2009, at 2:34 PM,

Re: NSString and regular expressions

2009-07-30 Thread Rob Keniger
On 30/07/2009, at 2:51 PM, BareFeet wrote: You might want to look at AGRegex which is very compact (one class) and which uses PCRE: http://colloquy.info/project/browser/trunk/Frameworks/AGRegex Thanks for the tip. Have you been able to get this to work? Do we add the framework or the AGRe

Re: [SOLVED] Binding collection view label through two entities

2009-07-30 Thread Rick Mann
Not sure what was going on here, but when I discovered and fixed a different error in the code, this started to work properly. Because of the bug, I wasn't building my model graph properly, but I'm at a loss as to why it was printing the right thing in NSLog. On Jul 29, 2009, at 18:46:55, R

Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
I need to render short sentences in my UI, and make certain words clickable (and differently-styled). I know I can use a web view, but that seems like overkill. I currently have a multiline NSTextField. Is it possible to display an NSAttributedString, and have the cursor change over clickab

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Тимофей Даньшин
Yes, it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, must be there, too. Best regards, Timofey On Jul 30, 2009, at 1:53 PM, Rick Mann wrote: I need to render short sentences in my

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
Great, thank you! On Jul 30, 2009, at 03:03:13, Тимофей Даньшин wrote: Yes, it is possible. See the docs for NSAttributedString for details. There was also an example of how to make hyperlinks, the link to that sample code, i suppose, must be there, too. Best regards, Timofey On Jul 30, 2

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
Hmm. After looking at the sample code suggested by the docs for NSAttributedString, I'm left at square one. Most of the samples required upgrading their Xcode projects. Some crash when run. Others get errors compiling. One even dumps a stack trace to the error log when it compiles. None t

Re: Hyperlinks in NSAttributedString?

2009-07-30 Thread Rick Mann
I may have found what I needed here: http://developer.apple.com/qa/qa2006/qa1487.html On Jul 30, 2009, at 03:29:19, Rick Mann wrote: Hmm. After looking at the sample code suggested by the docs for NSAttributedString, I'm left at square one. Most of the samples required upgrading their Xcod

Re: Making NSTextView not wrap lines

2009-07-30 Thread Jonathan Dann
From the archives: http://www.cocoabuilder.com/archive/message/cocoa/2008/5/23/207981 On 28 Jul 2009, at 18:11, Peter Mulholland wrote: Hello cocoa-dev, Basically, i'm trying to do a little debug console. I'm using the NSTextView in NSScrollView from Interface Builder. I've got a Print me

Re: NSString and regular expressions

2009-07-30 Thread John Engelhart
On Mon, Jul 27, 2009 at 9:02 PM, Rob Keniger wrote: > > On 28/07/2009, at 10:38 AM, Dave DeLong wrote: > > RegexKit. Without a doubt. >> >> http://regexkit.sourceforge.net >> >> I use it in about 75% of my projects. >> > > RegexKit is very nice and extremely comprehensive, but it has quite a la

NSMutableDictionary Poitners

2009-07-30 Thread DerNalia
If I do something like: varName = [dictionaryName objectForKey:@"keyName"]; does that return a copy of what is in the dictionary? or a pointer? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comm

Bindings for dictionaries inside of an array

2009-07-30 Thread Lance Braud
I am trying to create a master-detail view of Skim notes. Skim is a pdf reader that let's you take notes on the pdf. The authors provide a cocoa framework that lets me access the notes in the pdf. When I request the notes, I am given an NSArray of notes, each note is an NSDictionary contain

Re: NSMutableDictionary Poitners

2009-07-30 Thread I. Savant
On Jul 30, 2009, at 1:18 PM, DerNalia wrote: If I do something like: varName = [dictionaryName objectForKey:@"keyName"]; does that return a copy of what is in the dictionary? or a pointer? It returns the object itself (as a pointer by necessity). It doesn't copy anything as that wouldn't

How to tell other controller that orientationDidChange

2009-07-30 Thread Agha Khan
Hi: I do see orientationDidChange in my AppDelegate but how can we receive same notification to other controllers. Best regards Agha ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to th

Re: Bindings for dictionaries inside of an array

2009-07-30 Thread Jerry Krinock
On 2009 Jul 30, at 12:40, Lance Braud wrote: I thought that the keys in your objects are these: bounds, contents, quadrilateralPoints, type, pageIndex, color I have tried making the second table bind to the array controller's "Controller Key" using "selection," and binding "Model Key Path"

Re: NSString and regular expressions

2009-07-30 Thread BareFeet
Hi Rob, I personally just compile the files directly into my project. You need AGRegex.h and AGRegex.m but you should only compile the following files from the pcre distribution: pcre_chartables.c pcre_compile.c pcre_exec.c pcre_fullinfo.c pcre_get.c pcre_globals.c pcre_info.c pcre_ord2utf8

Re: Bindings for dictionaries inside of an array

2009-07-30 Thread Lance Braud
I thought that the keys in your objects are these: These are the "keys" in a dictionary. I want to display the whole dictionary in a two column table. bounds, contents, Using "key" works when it is a dictionary by itself Show us what you mean by that. I create a KV-compliant NSDict

Re: NSString and regular expressions

2009-07-30 Thread BareFeet
Hi John and all, You might want to look at AGRegex which is very compact (one class) and which uses PCRE: http://colloquy.info/project/browser/trunk/Frameworks/AGRegex Of note, Colloquy appears to have switched to RegexKitLite itself: http://svn.colloquy.info/project/changeset/4301 I di

Re: NSString and regular expressions

2009-07-30 Thread Charles Srstka
On Jul 30, 2009, at 7:04 PM, BareFeet wrote: RegexKitLite looks promising. It claims to only require you to add the .h and .m file to your project and link to the libicucore.dylib library. The documentation notes: "Warning: Apple does not officially support linking to the libicucore.dylib

NSURLConnection issues

2009-07-30 Thread Jack Carbaugh
I am working on a program that is basically a wrapper around some web pages. I am using NSURLConnection to download the various pages needed, however, with 2 specific users, NSURLConnection returns immediately with an error, NSURLErrorDomain Code -1005 "Lost Network Connection" The reques

Re: NSURLConnection issues

2009-07-30 Thread Jerry Krinock
On 2009 Jul 30, at 17:44, Jack Carbaugh wrote: I am working on a program that is basically a wrapper around some web pages. I am using NSURLConnection to download the various pages needed, however, with 2 specific users, NSURLConnection returns immediately with an error, NSURLErrorDomain

[NSegmentedControl labelForSegment:]

2009-07-30 Thread Stephen Blinkhorn
Hello and advanced apologies if I'm doing something stupid here but.. NSMutableDictionary *attributes = [[NSMutableDictionary alloc] init]; [attributes setObject:[style tabFont] forKey:NSFontAttributeName]; [attributes setObject:[style frame1Color] forKey:NSForegroundColorAttributeName]; NSSt

Diagramming (a bit OT)

2009-07-30 Thread Loukas Kalenderidis
Hey guys, Sorry, this is a bit off topic for this list, but I'm mostly interested in responses from Cocoa people so please bear with me. What do you use for technical diagramming for everything in the software development realm? I use OmniGraffle, but most of my work is pretty informal be

Re: Diagramming (a bit OT)

2009-07-30 Thread Kiel Gillard
I've always used OmniGraffle with UML stencils in the past. I'm not sure if you know about these already Hope this is of some help, Kiel On 31/07/2009, at 1:19 PM, Loukas Kalenderidis wrote: Hey guys, Sorry, this is a bit off topic for this list, but

Stumped by EXEC_BAD_ACCESS

2009-07-30 Thread David Blanton
When I quit my application it ends as expected. When I close the last window I get the EXEC_BAD_ACCESS message. Following Greg Parker's 2006 post at CocoaBuilder I get the following which according to that post respondsToSelector:" is being called on a nil object. As you can see the object

Re: Stumped by EXEC_BAD_ACCESS

2009-07-30 Thread Graham Cox
On 31/07/2009, at 6:37 AM, David Blanton wrote: When I quit my application it ends as expected. When I close the last window I get the EXEC_BAD_ACCESS message. Following Greg Parker's 2006 post at CocoaBuilder I get the following which according to that post respondsToSelector:" is being

Re: Stumped by EXEC_BAD_ACCESS

2009-07-30 Thread Kyle Sluder
On Jul 30, 2009, at 1:37 PM, David Blanton wrote: Following Greg Parker's 2006 post at CocoaBuilder I get the following which according to that post respondsToSelector:" is being called on a nil object. Messages to nil do not cause a crash. You have a memory management bug. Turn on NSZ

Re: NSMutableDictionary Poitners

2009-07-30 Thread Clark Cox
On Thu, Jul 30, 2009 at 10:18 AM, DerNalia wrote: > If I do something like: > varName = [dictionaryName objectForKey:@"keyName"]; > > does that return a copy of what is in the dictionary? No. > or a pointer? All objects are passed It follows the normal Cocoa memory management rules. The object

Re: NSMutableDictionary Poitners

2009-07-30 Thread Clark Cox
On Thu, Jul 30, 2009 at 10:06 PM, Clark Cox wrote: > On Thu, Jul 30, 2009 at 10:18 AM, DerNalia wrote: >> If I do something like: >> varName = [dictionaryName objectForKey:@"keyName"]; >> >> does that return a copy of what is in the dictionary? > > No. > >> or a pointer? That should have been: >

NSURL fileURLWithPath doesn't produce a valid URL

2009-07-30 Thread Alexander Bokovikov
Hi, All, I've found that [NSURL fileURLWithPath] doesn't convert such symbols as "+" into URL-encoded format. It only converts blanks into %20. As a result, such path, as _CS_DARWIN_USER_DIR, will not be converted into a valid URL. Is there any method or function here to produce a valid U

Re: NSURL fileURLWithPath doesn't produce a valid URL

2009-07-30 Thread Dave Keck
Check out CFURLCreateStringByAddingPercentEscapes(), and note that CFURL is toll-free bridged with NSURL. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators