Fwd: [SOLVED] NSLevelIndicator

2008-05-17 Thread Philip Bridson
IB or programatically with [[indicator cell] setEditable:NO]. On May 17, 2008, at 4:41 PM, Philip Bridson wrote: I have an NSLevelIndicator in a utility window that does the standard stuff, but I have just noticed that if I click on the indicator I can manually select the level. I have rea

NSLevelIndicator

2008-05-17 Thread Philip Bridson
Hi there, I have an NSLevelIndicator in a utility window that does the standard stuff, but I have just noticed that if I click on the indicator I can manually select the level. I have read the chapter about indicators but cannot find info about how to disable this functionality. Can any o

Re: NSWindow Centering Problem

2008-05-07 Thread Philip Bridson
think that a simple "The answer can be found at in the docs" can easily convey the same message without sarcasm. However, I do not wish to start a debate and so I apologise, and recognize that the mistake was my own. Many thanks, Phil. On 7 May 2008, at 20:42, Philip Bridson wrote

Re: NSWindow Centering Problem

2008-05-07 Thread Philip Bridson
you cannot construct a helpful sentence then don't reply. Phil. On 7 May 2008, at 20:31, Sean McBride wrote: On 5/7/08 3:06 PM, Andy Lee said: On May 7, 2008, at 2:59 PM, Philip Bridson wrote: Can anyone tell me why when I use [MyWindow center] the window ends up about an inch from the t

NSWindow Centering Problem

2008-05-07 Thread Philip Bridson
Hi there, Can anyone tell me why when I use [MyWindow center] the window ends up about an inch from the top of the screen? I thought this method is meant to center the window. Is there something I am doing wrong? Many thanks, Phil. ___ Cocoa-dev

Re: NSWindow With IB

2008-05-01 Thread Philip Bridson
hu, May 1, 2008 at 4:53 PM, Philip Bridson <[EMAIL PROTECTED]> wrote: I don't mind manipulating it with code if I have to. Subclass NSWindow and override -initWithContentRect:styleMask:backing:defer to pass your custom window mask to super's implementation. Then in the identi

NSWindow With IB

2008-05-01 Thread Philip Bridson
Hi There, Is there any way to create a Window with no title-bar in IB? I want one that is only displayed while the app launches like many apps do. I create all my windows with IB and I know that I can use NSBorderlessWindowMask if I create one programatically but is there anyway of doing

Re: NSTextField with NSLevelIndicator

2008-04-28 Thread Philip Bridson
gt;See the docs for more details. > >--Andy > >On Apr 28, 2008, at 3:17 PM, Philip Bridson wrote: > >> Hi there, >> >> I want to create a password analysis tool that updates an >> NSLevelIndicator with each character entered into a >> NSSecureTextField. I kno

NSTextField with NSLevelIndicator

2008-04-28 Thread Philip Bridson
Hi there, I want to create a password analysis tool that updates an NSLevelIndicator with each character entered into a NSSecureTextField. I know how to update the NSLevelIndicator once the user has finished entering text but how do i update it per character? To give you a bit more info: T

Passing a C String as an argument

2008-04-20 Thread Philip Bridson
Hi There, Is there anyway to pass a C string from a Obj-C class to a C function as an argument? I know that I can use pointers to the string but it gets a bit messy as I am using pointers in the C function to manipulate the string. I also could put it in C++ and it would work but I'm tryi

Core Data Client/Server Application

2008-03-30 Thread Philip Bridson
Hi there, Can core data be used to create a Client/Server type application? I heard that there are a few problems when accessing the persistent store via multiple clients. Many thanks, Phil. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
On Feb 28, 2008, at 7:26 PM, Philip Bridson wrote: I can't tell you why it happened but it happened to me a few weeks ago using XC 2.4.1 on Tiger 10.4.11. I couldn't solve it so I uninstalled the entire Developer folder & Tools then re-installed and now it works fine. Phil

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
stupid, I'm sorry. Sam McDonald Trimonix [EMAIL PROTECTED] On Feb 28, 2008, at 7:26 PM, Philip Bridson wrote: I can't tell you why it happened but it happened to me a few weeks ago using XC 2.4.1 on Tiger 10.4.11. I couldn't solve it so I uninstalled the entire Developer fo

Re: Cannot Debug

2008-02-28 Thread Philip Bridson
I can't tell you why it happened but it happened to me a few weeks ago using XC 2.4.1 on Tiger 10.4.11. I couldn't solve it so I uninstalled the entire Developer folder & Tools then re-installed and now it works fine. Phil. On 29 Feb 2008, at 00:31, Steve Cronin wrote: Folks; This is XC

Re: NSLocalizedStringFromTable

2008-02-28 Thread Philip Bridson
Thanks thats exactly what I needed to know. Thanks for your help. Phil. On 28 Feb 2008, at 23:39, Douglas Davidson wrote: On Feb 28, 2008, at 3:32 PM, Philip Bridson wrote: Just a short question. I'm working with localizations and I get the whole concept of strings files etc but do I

NSLocalizedStringFromTable

2008-02-28 Thread Philip Bridson
Hi there, Just a short question. I'm working with localizations and I get the whole concept of strings files etc but do I have to create a file with english values in it? For instance my french one is: "Yes" = "Oui" But do I have to create a english one with: "Yes" = "Yes" or will cocoa

Re: Can CoreData return only unique results of an attribute

2008-02-26 Thread Philip Bridson
OK, I think I understand what you want to do now. You want to retrieve the one set of values and then filter them based on their individual values. Am I understanding right now? If this is what you want to do then I am afraid you cannot do this in interface builder. You would need to do this

Re: Can CoreData return only unique results of an attribute

2008-02-26 Thread Philip Bridson
roller. I just didn't know how to write en expression asking for all unique values from the ArrayController for a given key. In the Predicate examples they filter a single potential result against some criteria. Can I say "only return unique values from yourself"? Adam On Tue,

Re: Can CoreData return only unique results of an attribute

2008-02-26 Thread Philip Bridson
Yeah there is. From the documentation: You can set a predicate for an array controller to filter the content array. You can set the predicate in code (using setFilterPredicate:). You can also bind the array controller's filterPredicate binding to a method that returns an NSPredicate object

Re: wiring up core data, bindings, NSArrayController and NSCollectionView

2008-02-26 Thread Philip Bridson
Hi there, I am no expert on core data but I have been using it extensively in my app over the past few months. From what I can see from your code it looks similar to what I have been doing and it works fine for me to be honest. What I think maybe the problem is that just because you have bo

Re: Event Logging

2008-02-26 Thread Philip Bridson
or to use File Manager? Many thanks. Phil. On 26 Feb 2008, at 12:58, Martin wrote: Le 26 févr. 08 à 11:53, Philip Bridson a écrit : Is event logging really as easy as just declaring the location of the application log directory and then passing the relevant event string to NSLog which

Event Logging

2008-02-26 Thread Philip Bridson
Is event logging really as easy as just declaring the location of the application log directory and then passing the relevant event string to NSLog which will "know" where to write the event? I can't find much about it in the documentation but what I have found is a little vague. Many th

Re: Private Methods

2008-02-22 Thread Philip Bridson
ur classes to a more recent version. What do you gain by deciding (and forcing) what a user of the code can and cannot do with it? -- João Pavão On 2008/02/22, at 12:16, Philip Bridson wrote: I agree. Your point hit the nail on the head and is exactly the reason that I do not w

Re: Private Methods

2008-02-22 Thread Philip Bridson
Just to finish the discussion, but I have also just found out that you cannot overload functions in Objective-C to accept different arguments. I feel this is also an important feature that needs to be addressed. Phil. On 22 Feb 2008, at 12:16, Philip Bridson wrote: I agree. Your point

Re: Private Methods

2008-02-22 Thread Philip Bridson
what the Cocoa framework does. To be honest, trying to use C++ just for this seems a waste of time; perhaps you should explain why you want to do this? Is it to try and partition your code up, is this something that really MUST stop, say, plugins from accessing the code? Mike. On 22 F

Private Methods

2008-02-22 Thread Philip Bridson
How do I make a method private? I have tried putting @private before the method that I want to make private but the compiler flags a parse error. I read the documentation and I can only find reference to private member variables. I want to make sure that a method can only be accessed via

NSMutableArray Problem

2008-02-21 Thread Philip Bridson
Hi Guys, I'm trying to do this: NSString *list = @"wrenches, hammers, saws"; NSArray *listItems = [list componentsSeparatedByString:@", "]; Which is straight out of the documentation and I want to use a Mutable Array instead, but I get this warning: warning: initialization from distinct Ob