NSRuleEditor/NSPredicateEditor selected rows

2008-10-31 Thread Houdah - ML Pierre Bernard
Hi! NSRuleEditor has the concept of selected rows in its API. I however see no visual clues of which rows are selected. Is it possible to subclass whatever cell view is used by the rule editor to add such a visual clue? Pierre ___ Cocoa-dev ma

Re: Help with NSBitmapImageRep, please

2008-10-31 Thread Ken Thomases
On Oct 30, 2008, at 7:12 PM, M Pulis wrote: I have a sensor device that give me raw data for an image of 1201 by 861 pixels at 16 bits per pixel. Although monochromatic, I would like to represent it in an RGB bitmap. I use an NSInteger [3] to populate the pixels via setPixel. You should r

Re: Creating NSDecimal

2008-10-31 Thread Ken Thomases
On Oct 31, 2008, at 1:24 AM, Andrew Farmer wrote: On 30 Oct 08, at 23:18, Graham Cox wrote: On 31 Oct 2008, at 5:08 pm, HAMILTON, Steven wrote: Hi folks, Can someone tell me how I create an NSDecimal? The C struct one, not the ObjC NSDecimalNumber. For performance and simplicity I'd rathe

Re: Porting from Windows to Mac

2008-10-31 Thread Jean-Daniel Dupas
Le 30 oct. 08 à 23:49, Stefan Werner a écrit : I would also recommend that you start over with the design of your GUI, for the sensibilities and design principles of Mac OS X are very different. This difference is exacerbated if you consider the age of MFC... You are aware that MFC (199

Re: Customizing controls: Inheritance bad?

2008-10-31 Thread Negm-Awad Amin
Am Do,30.10.2008 um 16:51 schrieb Brian Williams: Hello, I'm brand new to Cocoa/Obj-C and I'm working on converting an app. to use Cocoa... I've heard that, in general, if you are using inheritance in Cocoa, you're not following the typical standard design pattern. Is this true?

Re: How to show Interface Builder's build warning and messages?

2008-10-31 Thread Negm-Awad Amin
In many cases this are no warnings but "notices". You can switch them off in Xcode, if you want to: http://www.cocoading.de/webspace/IBC%20Notices.tiff Cheers Am Mi,29.10.2008 um 08:39 schrieb Oleg Krupnov: Recently I was building my project and saw there were some warnings and messages rega

Re: Compare images in Cocoa

2008-10-31 Thread Karan, Cem (Civ, ARL/CISD)
On Thu, 30 Oct 2008 20:21:47 -0700, Pierce Freeman wrote: > Hi everyone. I am wondering if there is some way to compare > two images in Cocoa, and then somehow spit out a percent of > how similar they are. The only way I could think of is > comparing every pixel, but this seems like it would ta

Re: Delegation across thread

2008-10-31 Thread Andre Masse
Thanks a lot for your very clear explanation Michael. Looks like performSelectorOnMainThread: will be the way to go. Thanks again, Andre Masse On Oct 31, 2008, at 00:41, Michael Ash wrote: It's important to remember that "delegate" is just a design pattern, not a language feature. A delegat

NSTokenField drag and drop

2008-10-31 Thread Chris Idou
I uploaded a mini project here: http://idisk.mac.com/chris.bitmead-Public?view=web Can anyone tell me why writeRepresentedObjects isn't called on the TokenDelegate when you drag a token from one field to the other? ___ Cocoa-dev mailing list

How to add new category to spotlight results?

2008-10-31 Thread Raj
Hi All I have a client server based application. I want to use spotlight search capabilities to search the server content. Can anyone answer the following questions for me? 1. How can I make spotlight search using my application rather than searching for the document files. i.e. when someone types

Re: When and how often do you mix C++ with Objective C in your project?

2008-10-31 Thread Stefan Werner
On Oct 31, 2008, at 12:33 AM, Boon Chew wrote: I am a newbie to the cocoa world (PC -> Mac switcher). I have a fair amount of experience coding in C and C++ and I am just getting into Obj C now. Right now I am trying to learn the language idioms and patterns in the Obj C world, specifica

Re: detecting an option-click on a button

2008-10-31 Thread Sean McBride
On 10/30/08 2:51 PM, Paul Archibald said: >-(IBAction) handleButton:(id)sender { > > if( [[NSApp currentEvent] modifierFlags] && NSAlternateKeyMask ) { > // handle option + click > } > else { > // do normal stuff > } >} That's the correct approa

Re: How to add new category to spotlight results?

2008-10-31 Thread Nick Zitzmann
On Oct 31, 2008, at 1:20 AM, Raj wrote: 1. How can I make spotlight search using my application rather than searching for the document files. i.e. when someone types something in spotlight field, I internally search for that text in my server and return the results. You can't. Nick Zitzm

Resorting NSOutlineView rows in response to edits

2008-10-31 Thread Ken Tozier
Hi I have a dynamically generated NSOutlineView that displays Projects and pages like so project name page 1 page 2 page 3 page 4 page 5 I got the page number editing working and it triggers other events (like writing the new page number to an SQL da

Re: Compare images in Cocoa

2008-10-31 Thread Pierce Freeman
I kind of figured it was complex, but not THIS complex. Would you by any chance have a link to a research paper - Though I highly doubt it ;) - that would have something like this in it. Does anyone think that there is some open-source way to accomplish it? Sincerely, Pierce F. On 10/30/08 1

Re: Parsing xml files in Cocoa applications

2008-10-31 Thread Nicko van Someren
On 30 Oct 2008, at 09:29, Paul Reilly wrote: There is also some good sample code on the iPhone Developer site, called SeismicXML which shows how to parse an XML document. It is worth noting that while the event-driven NSXMLParser class is available on the iPhone, NXSMLDocument and its frie

Re: Parsing xml files in Cocoa applications

2008-10-31 Thread Dave DeLong
Our local CocoaHeads group had a presentation on XML parsing this month in Cocoa. We should be getting our screencasts and slides online in the next day or two. I'll let you know when they're up. Dave DeLong On Oct 31, 2008, at 8:56 AM, Nicko van Someren wrote: On 30 Oct 2008, at 09:29,

Re: Parsing xml files in Cocoa applications

2008-10-31 Thread Devon Ferns
NSXMLParser is also good if you don't know or don't care what the order of the elements are in your XML file. Devon Nicko van Someren wrote: It is worth noting that while the event-driven NSXMLParser class is available on the iPhone, NXSMLDocument and its friends for the XML DOM are NOT avai

windowDidExpose: When called?

2008-10-31 Thread Claus Atzenbeck
Hi all: I need a delegate that gets called whenever the window appears on the screen. The opposite of windowWillClose:, so to say. However, - (void)windowDidExpose:(NSNotification *)notification does not get called via any of the following methods: [windowController showWindow:self]; [[window

Re: Porting from Windows to Mac

2008-10-31 Thread Bill Bumgarner
On Oct 31, 2008, at 1:21 AM, Jean-Daniel Dupas wrote: Le 30 oct. 08 à 23:49, Stefan Werner a écrit : I would also recommend that you start over with the design of your GUI, for the sensibilities and design principles of Mac OS X are very different. This difference is exacerbated if you consi

Re: Compare images in Cocoa

2008-10-31 Thread Nicko van Someren
On 31 Oct 2008, at 03:21, Pierce Freeman wrote: Hi everyone. I am wondering if there is some way to compare two images in Cocoa, and then somehow spit out a percent of how similar they are. The only way I could think of is comparing every pixel, but this seems like it would take a long time

Re: Compare images in Cocoa

2008-10-31 Thread Brian Stern
On Oct 30, 2008, at 11:21 PM, Pierce Freeman wrote: Hi everyone. I am wondering if there is some way to compare two images in Cocoa, and then somehow spit out a percent of how similar they are. The only way I could think of is comparing every pixel, but this seems like it would take a long

How to read proxy username and password?

2008-10-31 Thread Mark Allan
Hi all, I've got an application which uses a third party command line tool to download some files from the web. Unfortunately, the command line tool won't work with a proxy server unless the proxy settings are written in clear text (ugly but nothing I can do about that) in a config file. The

Re: Compare images in Cocoa

2008-10-31 Thread Jean-Daniel Dupas
Le 31 oct. 08 à 16:56, Brian Stern a écrit : On Oct 30, 2008, at 11:21 PM, Pierce Freeman wrote: Hi everyone. I am wondering if there is some way to compare two images in Cocoa, and then somehow spit out a percent of how similar they are. The only way I could think of is comparing every p

Re: windowDidExpose: When called?

2008-10-31 Thread j o a r
On Oct 31, 2008, at 8:23 AM, Claus Atzenbeck wrote: I need a delegate that gets called whenever the window appears on the screen. The opposite of windowWillClose:, so to say. However, - (void)windowDidExpose:(NSNotification *)notification does not get called via any of the following methods:

Re: NSTextView actions

2008-10-31 Thread Randall Meadows
On Oct 30, 2008, at 7:34 PM, Randall Meadows wrote: On Oct 30, 2008, at 7:23 PM, Randall Meadows wrote: When I hit, for example, the Page Up area of the scroll bar, it animates to it's new position; my reflection updates only a very small portion of this change. It doesn't at all when I hit

Simple Flipbook Animation?

2008-10-31 Thread Jeshua Lacock
Hello, I think I must be missing something obvious. I have looked over all of the CoreAnimation documentation, and I don't see a convenient way to flip through frames. Basically I have an NSArray populated with 45 NSImages. I just want to flip through them. Can anyone offer a recommendat

Re: Problem with NSData to NSString to NSData

2008-10-31 Thread Joel Norvell
Dear Cocoa-dev People, I wanted to thank everyone for their helpful replies to my question: How to save metadata for a PDF file? Graham, thank you for confirming and clarifying "the Cocoa way." Your caveat (problem with other pdf readers) was also well taken! Ricky, thank you for your trencha

Re: Simple Flipbook Animation?

2008-10-31 Thread douglas welton
Did you take a look at using the NSAnimation class? The delegate would be a good place to swap up one image for another in a display view. On Oct 31, 2008, at 12:51 PM, Jeshua Lacock wrote: Hello, I think I must be missing something obvious. I have looked over all of the CoreAnimation

Re: A way to disable all tooltips in an Application?

2008-10-31 Thread Heinrich Giesen
On 30.10.2008, at 13:41, Vijay Malhan wrote: Hello All, Is there a way to disable all tooltips in an Application. Regards, Vijay Here: and here

Re: Simple Flipbook Animation?

2008-10-31 Thread Matt Long
Look at overriding the layer transition. You can use a page curl filter, if that's your desired effect, to transition changes to the layer's content property. - Create a CATransition object. - Create a CIFilter that implements a page curl (Check out Apple's Core Image Filters docs and sampl

NSNetService won't resolve

2008-10-31 Thread Benjámin Salánki
Hi all, I have an NSNetService enabled app that acts as both the client and the server on the same machine. My problem is that once I register the service I create and I want to set up the connection the aNetService returned has an empty array for the addresses in - (void)netServiceBrowse

Re: Document dirty state during field edit

2008-10-31 Thread Ashley Clark
On Oct 31, 2008, at 1:19 AM, Ashley Clark wrote: I'm pretty sure I've seen someone ask this before but I just can't find it in Google. So I'll ask again. I have undo/redo working throughout my program but I seem to remember earlier that upon opening a document and immediately after beginn

Re: Simple Flipbook Animation?

2008-10-31 Thread Jeshua Lacock
On Oct 31, 2008, at 11:07 AM, douglas welton wrote: Did you take a look at using the NSAnimation class? The delegate would be a good place to swap up one image for another in a display view. Thanks for your help Douglas. Yes, that was the first class I looked at. I guess it is not clea

Re: Simple Flipbook Animation?

2008-10-31 Thread Jeshua Lacock
On Oct 31, 2008, at 11:33 AM, Matt Long wrote: Look at overriding the layer transition. You can use a page curl filter, if that's your desired effect, to transition changes to the layer's content property. - Create a CATransition object. - Create a CIFilter that implements a page curl (Che

Re: Simple Flipbook Animation?

2008-10-31 Thread douglas welton
Jeshua, I have no idea what you are actually doing in your code, so any advice i give below is pure speculation Let's say you have an array of NSImages and an NSImageView to display them in. I would create the animation, set a collection of progress marks, and use the delegate method -

Re: Simple Flipbook Animation?

2008-10-31 Thread John Harper
Hi, I described how to do this using a CAKeyframeAnimation in a previous thread: http://www.cocoabuilder.com/archive/message/cocoa/2008/8/3/214715 John On Oct 31, 2008, at 9:51 AM, Jeshua Lacock wrote: Hello, I think I must be missing something obvious. I have looked over all

Re: Simple Flipbook Animation?

2008-10-31 Thread Jeshua Lacock
On Oct 31, 2008, at 12:13 PM, John Harper wrote: I described how to do this using a CAKeyframeAnimation in a previous thread: http://www.cocoabuilder.com/archive/message/cocoa/2008/8/3/214715 Thanks John! Awesome! That looks just like what the doctor ordered! Going to plug it in right n

Re: windowDidExpose: When called?

2008-10-31 Thread Michael Ash
On Fri, Oct 31, 2008 at 11:23 AM, Claus Atzenbeck <[EMAIL PROTECTED]> wrote: > Hi all: > > I need a delegate that gets called whenever the window appears on the > screen. The opposite of windowWillClose:, so to say. > > However, > - (void)windowDidExpose:(NSNotification *)notification > does not ge

Re: NSTextView actions

2008-10-31 Thread Michael Ash
On Thu, Oct 30, 2008 at 9:23 PM, Randall Meadows <[EMAIL PROTECTED]> wrote: > OK, last text-related question of the day (I promise, only because I'm > calling it a day after I send this)... > > I have an NSTextView, in an NSScrollView, (loaded from a nib) that I embed > in a custom view at runtime;

NSData dataWithContentsOfFile - freeWhenDone:NO ?

2008-10-31 Thread jeffs87
Hi, I'm using [NSData dataWithContentsOfFile] to load an AIFF file. I was wondering if there is a way to make it freeWhenDone:NO so I can delete the NSData object and keep the bytes. Audio files can be pretty big so I was hoping to avoid having to copy the bytes if possible. thanks Jeff

Detecting when NSComboBox text changed by list

2008-10-31 Thread James Walker
How can I be notified when the text of an NSComboBox is changed by choosing something from the list? Oddly, my controlTextDidChange: delegate method is not called in that case, though it is called if I type in the field. None of the NSComboBox notifications or delegate methods look appropriat

Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?

2008-10-31 Thread Sherm Pendley
On Fri, Oct 31, 2008 at 3:02 PM, <[EMAIL PROTECTED]> wrote: > > I'm using [NSData dataWithContentsOfFile] to load an AIFF file. I was > wondering if there is a way to make it freeWhenDone:NO so I can delete the > NSData object and keep the bytes. Audio files can be pretty big so I was > hoping t

Re: NSData dataWithContentsOfFile - freeWhenDone:NO ?

2008-10-31 Thread David Duncan
On Oct 31, 2008, at 12:02 PM, [EMAIL PROTECTED] wrote: I'm using [NSData dataWithContentsOfFile] to load an AIFF file. I was wondering if there is a way to make it freeWhenDone:NO so I can delete the NSData object and keep the bytes. Audio files can be pretty big so I was hoping to avoid

NSSecureTextField and umlauts

2008-10-31 Thread Peter Alshuth
Hi all, I am having a problem with the NSSecureTextField and umlauts. If I type in 'OPTION u a' for 'ä' I get only the regular character back ('a'). I unchecked the box Only Roman Characters in the IB but nothing changed. Is this a limitation of this password field? Do I have to use a reg

NSArrayController and Auto Rearrange Content

2008-10-31 Thread Ashley Clark
I have a subclass of NSTableView that I use that allows the use of the return key during a field edit to move to the next row and begin editing. This works fine _unless_ the field I'm editing happens to be one that NSArrayController is observing and thus causes a rearrangeObjects call. When

Re: Detecting when NSComboBox text changed by list

2008-10-31 Thread Dave Fernandes
delegate method: comboBoxSelectionDidChange On Oct 31, 2008, at 3:34 PM, James Walker wrote: How can I be notified when the text of an NSComboBox is changed by choosing something from the list? Oddly, my controlTextDidChange: delegate method is not called in that case, though it is called i

Number in NSString to int.

2008-10-31 Thread Adam Penny
Hi there, I'm trying to process a MAC Address into Hex so I was going to do something like. NSArray *macArray=[[NSArray alloc] init]; macArray=[mac componentsSeparatedByString:@":"]; for (int i=0; i < [macArray count] ; i++) { //somehow need to get an int called dec from the number

Re: Number in NSString to int.

2008-10-31 Thread I. Savant
On Fri, Oct 31, 2008 at 4:38 PM, Adam Penny <[EMAIL PROTECTED]> wrote: > My main question is how to get an int from an NSString, See NSScanner. > NSArray *macArray=[[NSArray alloc] init]; > macArray=[mac componentsSeparatedByString:@":"]; > for (int i=0; i < [macArray count] ; i++) >

Re: Detecting when NSComboBox text changed by list

2008-10-31 Thread James Walker
Dave Fernandes wrote: delegate method: comboBoxSelectionDidChange No, that's not right. The comboBoxWillDismiss delegate method is better, though it gives "false positives". Consider this scenario: 1. I open the pop-up list. 2. I use an arrow key to change the selected item. 3. I press th

Re: Detecting when NSComboBox text changed by list

2008-10-31 Thread Kyle Sluder
On Fri, Oct 31, 2008 at 4:14 PM, James Walker <[EMAIL PROTECTED]> wrote: > At step 2, comboBoxSelectionDidChange is called, but the text field has not > yet changed. Actually, it has changed. Look into the NSEditor and NSEditorRegistration protocols. --Kyle Sluder ___

Padding Zeros...

2008-10-31 Thread Jean-Nicolas Jolivet
I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [stringWithFormat:@"%03d", 5], which would result in 005 but the problem in this par

Re: Detecting when NSComboBox text changed by list

2008-10-31 Thread James Walker
Kyle Sluder wrote: On Fri, Oct 31, 2008 at 4:14 PM, James Walker <[EMAIL PROTECTED]> wrote: At step 2, comboBoxSelectionDidChange is called, but the text field has not yet changed. Actually, it has changed. Look into the NSEditor and NSEditorRegistration protocols. Huh? I'm staring at the

Re: Padding Zeros...

2008-10-31 Thread Ken Thomases
On Oct 31, 2008, at 4:52 PM, Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [stringWithFormat:@"%03

Re: Padding Zeros...

2008-10-31 Thread Shawn Erickson
On Fri, Oct 31, 2008 at 2:52 PM, Jean-Nicolas Jolivet <[EMAIL PROTECTED]> wrote: > I'm having an interesting problem... I'm trying to format a number with > padding zeros but I can't figure out how to do it in this particular > situation. > > I know I can use a formatted string with something like

Re: Padding Zeros...

2008-10-31 Thread Randall Meadows
On Oct 31, 2008, at 3:52 PM, Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with something like [stringWithFormat:@"%03

Re: Padding Zeros...

2008-10-31 Thread Jean-Nicolas Jolivet
Thanks a lot guys, %0*d did the trick! :) Jean-Nicolas Jolivet Jean-Nicolas Jolivet wrote: I'm having an interesting problem... I'm trying to format a number with padding zeros but I can't figure out how to do it in this particular situation. I know I can use a formatted string with somet

Re: How to read proxy username and password?

2008-10-31 Thread Colin Barrett
Is it possible they're stored in Keychain? -Colin On Fri, Oct 31, 2008 at 4:09 PM, Mark Allan <[EMAIL PROTECTED]> wrote: > Hi all, > > I've got an application which uses a third party command line tool to > download some files from the web. Unfortunately, the command line tool won't > work wit

Re: NSRuleEditor/NSPredicateEditor selected rows

2008-10-31 Thread Peter Ammon
On Oct 31, 2008, at 12:17 AM, Houdah - ML Pierre Bernard wrote: Hi! NSRuleEditor has the concept of selected rows in its API. I however see no visual clues of which rows are selected. Is it possible to subclass whatever cell view is used by the rule editor to add such a visual clue? Pi

Tracking changes to NSTableView datasource

2008-10-31 Thread Andre Masse
Hi, I have a datasource for an NSTableView which is a NSMutableArray (call it mainArray for the moment) and I'm not sure which way is better to manage add, update and delete rows. I can use either one array for each of those cases or add a field to the mainArray (like 1 for new, 2 for upd

Re: Tracking changes to NSTableView datasource

2008-10-31 Thread Graham Cox
On 1 Nov 2008, at 9:37 am, Andre Masse wrote: I have a datasource for an NSTableView which is a NSMutableArray (call it mainArray for the moment) and I'm not sure which way is better to manage add, update and delete rows. I can use either one array for each of those cases or add a field to

API to get command line parameters

2008-10-31 Thread Daniel Luis dos Santos
Hello, Once browsing the documentation found that there is something that does it. NSUserDefaults or NSApplication, I can't remember which if any of those or how ? ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Re: API to get command line parameters

2008-10-31 Thread Bill Bumgarner
On Oct 31, 2008, at 4:18 PM, Daniel Luis dos Santos wrote: Hello, Once browsing the documentation found that there is something that does it. NSUserDefaults or NSApplication, I can't remember which if any of those or how ? [[NSProcessInfo processInfo] arguments]; http://developer.apple.c

Re: API to get command line parameters

2008-10-31 Thread Ken Thomases
On Oct 31, 2008, at 6:18 PM, Daniel Luis dos Santos wrote: Once browsing the documentation found that there is something that does it. NSUserDefaults or NSApplication, I can't remember which if any of those or how ? -[NSProcessInfo arguments] Cheers, Ken _

Re: How to read proxy username and password?

2008-10-31 Thread Mark Allan
Gah I feel like such a numpty now! Yes, that's exactly where it's stored. Thank you! Mark At 3:31 pm -0700 31/10/2008, Colin Barrett wrote: Is it possible they're stored in Keychain? -Colin > Anyway, writing to the config file isn't a problem. My question is how can I read the System pro

Re: NSOperationQueue broken?

2008-10-31 Thread Michael Ash
On Thu, Oct 30, 2008 at 10:16 PM, Colin Barrett <[EMAIL PROTECTED]> wrote: > On Thu, Oct 30, 2008 at 5:30 PM, Michael Ash <[EMAIL PROTECTED]> wrote: >> Based on the state of the program when it crashes, it appears that the >> problem is caused by a race condition which occasionally causes two of >>

Localization of Cocoa-Xib for a Newbie

2008-10-31 Thread Roman Fischer
Hi, I want to try Localization of a XIB, but I have problems: I have the following Equipment: - MacOS 10.5.5 - MacOS is runnig in German - System-Preference Languages are (in order): German, English,... - XCode 3.1.1 I make the following steps: 1. I Make a new

Can NSURLConnection use Proxy Server?

2008-10-31 Thread malcom
Hello Lists, I'm using NSURLConnection and NSURLRequest to make connection to a server. Now I would to implement Proxy server connection but I cannot find something about it inside the docs. Anyone can point to me to the right way? Thanks a lot. _

Re: Localization of Cocoa-Xib for a Newbie

2008-10-31 Thread Roman Fischer
Hi, I made an intesting experiment: 1. I opened the application package that Xcode had created. 2. Inside there I opened Contents -> Resources -> German.lproj -> MainMenu.xib using IB and saved it at the same place as MainMenu.nib 3. Started the application package again and I got my german t

Re: Localization of Cocoa-Xib for a Newbie

2008-10-31 Thread Roman Fischer
Hello Ken, Thank you for REALLY GREAT hint: The english MainMenue.xib has the File Type "file.xib" but the localized version for german is "sourcecode.xib". I changed it to "file.xib" , rebuilt the app and it runs as expected. So I think there is a small bug XCode 3.1.1 to assign the wron

Re: Can NSURLConnection use Proxy Server?

2008-10-31 Thread Nick Zitzmann
On Oct 31, 2008, at 10:05 AM, malcom wrote: I'm using NSURLConnection and NSURLRequest to make connection to a server. Now I would to implement Proxy server connection but I cannot find something about it inside the docs. Anyone can point to me to the right way? NSURLConnection does thi

Notification Vs Delegation

2008-10-31 Thread John Joyce
This may be a pointless and silly question, but is Delegation faster than Notification (generally) ? ___ 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

Re: Notification Vs Delegation

2008-10-31 Thread Ken Thomases
On Oct 31, 2008, at 7:33 PM, John Joyce wrote: This may be a pointless and silly question, but is Delegation faster than Notification (generally) ? Negligibly, probably. Don't worry about it unless and until you have measured an actual performance problem. Regards, Ken __

[OT] Install Issues

2008-10-31 Thread J. Todd Slack
Hi All, Creating an installer on Leopard 10.5.5 for 10.4 and 10.5. Everything is fine, the installer runs and my Applications folder shows modified at the time I ran the installer, but the app does not show up. I *thought* it might be the 'relocatable' issue, but nothing shows up under t

Re: Notification Vs Delegation

2008-10-31 Thread Peter Ammon
On Oct 31, 2008, at 5:33 PM, John Joyce wrote: This may be a pointless and silly question, but is Delegation faster than Notification (generally) ? Delegation allows you to check if the client is interested, via respondsToSelector:. If the delegate does not implement the method (or there

Re: Can NSURLConnection use Proxy Server?

2008-10-31 Thread J. Scott Tury
On Oct 31, 2008, at 8:42 PM, Nick Zitzmann <[EMAIL PROTECTED]> wrote: On Oct 31, 2008, at 10:05 AM, malcom wrote: I'm using NSURLConnection and NSURLRequest to make connection to a server. Now I would to implement Proxy server connection but I cannot find something about it inside the docs. A

Finder like wrapping + truncation

2008-10-31 Thread Mudi Dandan
Hi, I'm needing a hand with this. I'm trying to emulate the wrapping and truncation for icon labels in Finder's icon view. My first question is: is there any method around for making a string to line wrap, and to truncate the second line if it is too long (like on the right hand image in

Re: Tracking changes to NSTableView datasource

2008-10-31 Thread Andre Masse
Sorry for the confusion. English is not my natural language and it's been a long week :-) Also the subject should really be about synchronizing data in the table view with a database back-end. This the "tracking changes" I need to work on. I'll try to make this clearer. As an analogy, let's

Re: Finder like wrapping + truncation

2008-10-31 Thread Adam R. Maxwell
On Oct 31, 2008, at 6:39 PM, Mudi Dandan wrote: Hi, I'm needing a hand with this. I'm trying to emulate the wrapping and truncation for icon labels in Finder's icon view. My first question is: is there any method around for making a string to line wrap, and to truncate the second line if

Re: Finder like wrapping + truncation

2008-10-31 Thread Mudi Dandan
Thanks Adam, works grate! There is only one little flaw that it always truncates the tail and I don't see a way to change this. On Nov 1, 2008, at 2:50 AM, Adam R. Maxwell wrote: On Oct 31, 2008, at 6:39 PM, Mudi Dandan wrote: Hi, I'm needing a hand with this. I'm trying to emulate the w

Re: Finder like wrapping + truncation

2008-10-31 Thread Adam R. Maxwell
On Oct 31, 2008, at 7:20 PM, Mudi Dandan wrote: Thanks Adam, works grate! There is only one little flaw that it always truncates the tail and I don't see a way to change this. Did you try setting NSLineBreakByTruncatingMiddle on your NSParagraphStyle? I don't recall trying that with NS

Re: Finder like wrapping + truncation

2008-10-31 Thread Mudi Dandan
Sure I did. Seems that NSLineBreakByTruncatingMiddle in the NSParagraphStyle overrides NSStringDrawingTruncatesLastVisibleLine. Anyway, I think I can live with that :) On Nov 1, 2008, at 3:32 AM, Adam R. Maxwell wrote: On Oct 31, 2008, at 7:20 PM, Mudi Dandan wrote: Thanks Adam, works gra

Re: Finder like wrapping + truncation

2008-10-31 Thread Mudi Dandan
I just found this in the release notes: "The Cocoa Text System now allows the last visible line to have an ellipsis character appended if the entire content cannot fit into the specified bounding box. The behavior can be controlled with - truncatesLastVisibleLine for text cells. The -lineBre

Re: Finder like wrapping + truncation

2008-10-31 Thread Adam R. Maxwell
On Oct 31, 2008, at 7:53 PM, Mudi Dandan wrote: I just found this in the release notes: "The Cocoa Text System now allows the last visible line to have an ellipsis character appended if the entire content cannot fit into the specified bounding box. The behavior can be controlled with - tr

Gradient panel

2008-10-31 Thread David
Is there an easy way to instantiate a Cocoa panel with a gradient background? Are there any code samples? Is NSGradient the key? Any examples of how you hook this in with a panel or window? Thanks ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: Gradient panel

2008-10-31 Thread Chris Hanson
On Oct 31, 2008, at 8:28 PM, David wrote: Is NSGradient the key? Any examples of how you hook this in with a panel or window? NSGradient is, as you say, the key. Remember that drawing in Cocoa takes place in a view; from that perspective, "Cocoa panel with a gradient background" isn't reall