Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Alan Rogers
Check out http://www.panic.com/~wade/picker/ For a 'Developer Friendly' colour picker :P Al On 30/07/2009, at 2:34 PM, Henry McGilton (Boulevardier) wrote: On Jul 29, 2009, at 11:27 AM, Eric E. Dolecki wrote: This is good to use: #define UIColorFromRGB(rgbValue) [UIColor \ colorWithRed:(

Re: NSString and regular expressions

2009-07-29 Thread BareFeet
Hi Rob & all, On 28/07/2009, at 11:02 AM, Rob Keniger 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 fra

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Henry McGilton (Boulevardier)
On Jul 29, 2009, at 11:27 AM, Eric E. Dolecki wrote: This is good to use: #define UIColorFromRGB(rgbValue) [UIColor \ colorWithRed:((float) ((rgbValue & 0xFF) >> 16))/255.0 \ green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] cell.textCol

Re: Listening to Eject command

2009-07-29 Thread Ed Wynne
On Jul 29, 2009, at 9:12 PM, Farooq zaman wrote: For some reasons, I need to customize (or listen to) Eject command. I want this to happen before system actually do something with the device i.e eject disc or shows up some error. I want to perform some operation on disc before system eject

Re: UIWebView: prevent from displaying menu, Copy.

2009-07-29 Thread glenn andreas
Go to devforums.apple.com/community/iphone and search there - this has been discussed, with solutions, there... Sent from my iPhone On Jul 29, 2009, at 10:35 PM, norio ota wrote: Hi, I'd like to prevent UIWebView from selecting an area and showing the "Copy" menu item. I tried subclass

Re: Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread Quincey Morris
On Jul 29, 2009, at 19:58, Graham Cox wrote: I'm not sure I've fully followed your question, since I'm not as up with bindings as you are, but I'm just wondering: have you overlooked the fact that @"self" is a valid keypath or keypath component? If the array holds strings and you are bindin

Re: Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread Rob Keniger
On 30/07/2009, at 8:15 AM, A B wrote: I have an application where I'd like to store an editable set of keywords by way of the preferences controller. Easy, right? Unfortunately, for the life of me I can't figure out how to do it. I set up an array controller and point it to the shared p

UIWebView: prevent from displaying menu, Copy.

2009-07-29 Thread norio ota
Hi, I'd like to prevent UIWebView from selecting an area and showing the "Copy" menu item. I tried subclassing it and implementing touchesEnded:withEvent:. But since I don't know if double-tap is the exact way to show the menu, I'm not sure if I omit the event using the topped count. Furthe

Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)

2009-07-29 Thread Bill Bumgarner
On Jul 29, 2009, at 8:22 PM, Bill Bumgarner wrote: On Jul 29, 2009, at 7:09 PM, DeNigris Sean wrote: When using NSUserDefaults to get command line arguments, it doesn't seem to handle negative numbers correctly. In main.m: NSUserDefaults *args = [NSUserDefaults standardUserDefaults];

Re: NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)

2009-07-29 Thread Bill Bumgarner
On Jul 29, 2009, at 7:09 PM, DeNigris Sean wrote: When using NSUserDefaults to get command line arguments, it doesn't seem to handle negative numbers correctly. In main.m: NSUserDefaults *args = [NSUserDefaults standardUserDefaults]; int x = [args integerForKey:@"x"]; int y

Re: Listening to Eject command

2009-07-29 Thread Dave Keck
I believe you can use even taps for this. Check out: http://developer.apple.com/documentation/Carbon/Reference/QuartzEventServicesRef/Reference/reference.html#//apple_ref/c/func/CGEventTapCreate ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Pl

Re: Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread Graham Cox
On 30/07/2009, at 8:15 AM, A B wrote: Without those, what keypath do I use in the NSTableView I have set up to facilitate manipulation of that list? I'm not sure I've fully followed your question, since I'm not as up with bindings as you are, but I'm just wondering: have you overlooked

Listening to Eject command

2009-07-29 Thread Farooq zaman
Hi Everyone, For some reasons, I need to customize (or listen to) Eject command. I want this to happen before system actually do something with the device i.e eject disc or shows up some error. I want to perform some operation on disc before system ejects it. I tried to do it using DRNoti

Binding to an array of NSStrings stored in an application's preferences

2009-07-29 Thread A B
OK, I'm feeling really REALLY stupid for asking this question, but I've managed to stump myself so hard that I doubt I have the proper detachment to figure out the answer for myself any more. My apologies in advance... I have been playing around with bindings for a while now and LOVE them. Tha

Re: where can I download xcode 3.2

2009-07-29 Thread YongLi
Thanks everybody. I have found it. On Thu, Jul 30, 2009 at 4:17 AM, Henry McGilton (Boulevardier) < appledevelo...@trilithon.com> wrote: > > On Jul 28, 2009, at 12:22 AM, Kyle Sluder wrote: > > On Jul 27, 2009, at 10:38 AM, YongLi wrote: >> >> I have installed the snow leopardbut i can't find

NSUserDefault and Negative numerical arguments (Was: Posting mouse clicks with multiple displays)

2009-07-29 Thread DeNigris Sean
When using NSUserDefaults to get command line arguments, it doesn't seem to handle negative numbers correctly. In main.m: NSUserDefaults *args = [NSUserDefaults standardUserDefaults]; int x = [args integerForKey:@"x"]; int y = [args integerForKey:@"y"]; If the command line

Binding collection view label through two entities

2009-07-29 Thread Rick Mann
I've got a couple of entities, Foo and Bar. A Foo has a relation to a Bar. I've created a CollectionView that works well enough displaying a property of the Foos it lists, but can't seem to show the property of the associated Bars. It shows the same Bar property for each Foo it lists. T

Re: adding PDF annotations to the output of a regular NSView

2009-07-29 Thread Martin Wierschin
Hi John, So the problem is that there doesn't seem to be any way of marrying these two systems together. Ideally there would be some Cocoa method I could call in my NSView's drawRect method to add PDF annotations. But the only solution I see is something like this: 1. Produce raw PDF data

Re: adding PDF annotations to the output of a regular NSView

2009-07-29 Thread John Calhoun
On Jul 29, 2009, at 4:44 PM, Martin Wierschin wrote: So the problem is that there doesn't seem to be any way of marrying these two systems together. Ideally there would be some Cocoa method I could call in my NSView's drawRect method to add PDF annotations. But the only solution I see is som

Re: [NSEvent data1]

2009-07-29 Thread Jesper Storm Bache
This is not a problem with your understanding, but a known problem on 10.5: 6361482 AppKit 64 bit truncation of data1 and data2 when posting a custom event For 10.5 splitting up the data is probably the best way to go Jesper Storm Bache On Jul 29, 2009, at 4:52 PM, kvic...@pobox.com wrote:

[NSEvent data1]

2009-07-29 Thread kvic...@pobox.com
i'm building a 64bit app. in response to USB input, i create and post an application defined event. for the data1 field, i pass the address of an NSMutableDictionary as follows: ... data1: (NSInteger)dataDict ... in my application object's sendEvent override, i'm only getting (via [

adding PDF annotations to the output of a regular NSView

2009-07-29 Thread Martin Wierschin
Hello Everyone, I have a regular NSView hierarchy that saves out to PDF just fine. It's wonderful that the drawing/printing system on OSX is unified the way it is. Here's the addition: I'd like to link parts of my NSViews together, eg: if the user opens the saved PDF in Preview.app, click

[moderator] Re: [moderator] Re: About Posting [ end of this thread ]

2009-07-29 Thread Scott Anguish
Yes, an assumption on my part. but let's call this the end... we have code to write On 2009-07-29, at 6:56 PM, I. Savant wrote: On Jul 29, 2009, at 5:43 PM, Scott Anguish wrote: With particular respect to Idiot Savant. Email can easily convolute nuance. While he posts with a screen-name r

Re: [moderator] Re: About Posting [ end of this thread ]

2009-07-29 Thread I. Savant
On Jul 29, 2009, at 5:43 PM, Scott Anguish wrote: With particular respect to Idiot Savant. Email can easily convolute nuance. While he posts with a screen-name rather than his "real" name, he knows his stuff. Sorry, Scott, to follow up on this thread, but I felt the need to correct this

Looking for a method to Lock and Unlock the computer

2009-07-29 Thread Christopher J Kemsley
Hi all, I'm looking to write a program to run in the background and do the following: • Listen for Event A • If Event A occurs, either Sleep Display or Display Login Screen • Listen for Event B • If Event B occurs, log-in to a specific account Listening for the event is not a problem. How

Re: NSOpenPanel Exception/Bug

2009-07-29 Thread Seth Willits
On Jul 28, 2009, at 11:24 PM, Kyle Sluder wrote: On Jul 28, 2009, at 11:12 PM, Seth Willits wrote: Yes. It just fires off a task. Is there a particular reason you're doing this instead of using UTIs? UTIs are useless for determining what the actual content is if the extension (etc) is

Re: Fun (or not) with NSArrayControllers and CoreData.

2009-07-29 Thread Quincey Morris
On Jul 29, 2009, at 14:30, Daniel DeCovnick wrote: I'm sorry, you misunderstand. My NSManagedObject subclass Folder, not Job, has the allDescendantsJobs, and the NSTreeController/ NSOutlineView has all Folders where parent==nil as its root objects. There is a one Folder to many Jobs relation

Posting mouse clicks with multiple displays

2009-07-29 Thread DeNigris Sean
Hi list! I'm attempting to simulate mouse clicks (I already tried accessibility API, but I'm clicking on a flash movie in Safari, so it's not a standard UI element and doesn't work). I've got it working, unless I set x to a negative number to click on my second monitor, in which case, th

Re: How to drag file promises from IKImageBrowserView?

2009-07-29 Thread Nick Zitzmann
On Jul 29, 2009, at 2:33 PM, Matt Rajca wrote: [pasteboard declareTypes:[NSArray arrayWithObject:NSFilesPromisePboardType] owner:self]; [pasteboard setPropertyList:fileExtensions forType:NSFilesPromisePboardType]; NSFilesPromisePboardType is a special pasteboard type that cannot be set

Re: UITextView not updating

2009-07-29 Thread Development
I ended up having to do something similarly as bad for performance -(void)viewDidScroll { NSString* placeHolder= myTextView.text; myTextView.text =@""; myTextView.text =placeHolder; } can we say bumpy scroll. Once I get a few other bugs worked out I'll redo this to trigg

Re: Drag&Drop to desktop - file icons layout problem

2009-07-29 Thread Alastair Houghton
On 29 Jul 2009, at 21:24, I. Savant wrote: On Jul 29, 2009, at 4:16 PM, Alexander Bokovikov wrote: The question is, how could I assign icons location for dropped items? I believe, though didn't yet tested it, that similar problem will be with Finder window, when it is in icons mode. The onl

How to drag file promises from IKImageBrowserView?

2009-07-29 Thread Matt Rajca
Hi! I'm using IKImageBrowserView to display a collection files that reside on Bluetooth devices. From the documentation, it looks like the only method you have to override to support dragging is: - (NSUInteger)imageBrowser:(IKImageBrowserView *)aBrowser writeItemsAtIndexes:(NSIndexSet *)i

Re: Building iPhone application as backward compatible

2009-07-29 Thread Waqas Qureshi
Hi Mahamoob! There is no way! You should need to upgrade your iPhone OS. If this is not an error then may be possible that you used some 3.0 frameworks who not exist in 2.2. On Tue, Jul 28, 2009 at 3:24 PM, Mahaboob wrote: > I developed an iPhone application using iPhone OS 3.0 and build it ag

NSPersistentDocument Save As failure

2009-07-29 Thread Yvan BARTHÉLEMY
Hi, I have some misunderestanding with Core Data documents. I'm creating an empty Core Data document and then adding some content in it. I then saved it successfully. The problem comes only when I'm using Save As. In one document, I can add items (using my array controllers bound to my context), th

NSArrayController and avoidsEmptySelection

2009-07-29 Thread Cerino, Carmen
I have an NSArrayController hooked up to an NSCollectionView. When a user clicks into the empty space of the NSCollectionView, I would like it so they do not lose their currently selected items. I would have thought it should have been as simple as telling the NSArrayController to avoid emp

[moderator] Re: About Posting [ end of this thread ]

2009-07-29 Thread Scott Anguish
This thread is done. No followups to the list, on this topic, or on what I'm about to say. You can hit the list moderation address or me personally for feedback. For everyone's benefit. 1. Everyone's first source should be Apple documentation. It's written by experts with the backing and re

Re: something I can't understand

2009-07-29 Thread Luke the Hiesterman
On Jul 29, 2009, at 2:26 PM, Bill Bumgarner wrote: rotateRightBtn = [[PngButton alloc] init...]; (I don't remember what the initializer is for UIButton) ... and then configure it manually with whatever configuration UIButtonTypeInfoDark implies. The only publicly supported way to set a

Re: Fun (or not) with NSArrayControllers and CoreData.

2009-07-29 Thread Daniel DeCovnick
On Jul 29, 2009, at 12:40 PM, Quincey Morris wrote: On Jul 29, 2009, at 11:27, Daniel DeCovnick wrote: I read over the Ensuring KVO compliance docs, and I have to say, I don't think I understand it. At first glance it looks fine to me, but obviously it's not. Do I have to implement mutable

Re: iTunes DB Change Notifications?

2009-07-29 Thread Scott Anguish
On 2009-07-27, at 3:16 PM, I. Savant wrote: On Jul 27, 2009, at 3:09 PM, slasktrattena...@gmail.com wrote: Short answer: YES. A distributed notification is posted every time the the database is updated. Add an observer for notifications named "com.apple.iTunes.sourceSaved" posted by object

Re: something I can't understand

2009-07-29 Thread Bill Bumgarner
On Jul 29, 2009, at 2:18 PM, Agha Khan wrote: Dear bbum: Well After your email I started to write a small app to send you the project for passing my point across. AND FOUND THE PROBLEM. Awesome -- happy to have helped (and happy you didn't take my email as insulting... I sometimes find a

[SOLVED] NSArrayController subclass computed property not being updated

2009-07-29 Thread Alexander Heinz
On Jul 29, 2009, at 11:24 AM, Jim Correia wrote: On Jul 29, 2009, at 1:09 AM, Alexander Heinz wrote: I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks to the canRemove: prope

Re: something I can't understand

2009-07-29 Thread Agha Khan
Dear bbum: Well After your email I started to write a small app to send you the project for passing my point across. AND FOUND THE PROBLEM. @interface PngButton : UIButton { @public CGPoint horizontalLoc; CGPoint verticalLoc; } @property (assign) CGPoint horizontalLoc; @propert

Little "mind explanation" for changing views in iPhone

2009-07-29 Thread Gustavo Pizano
Hello all. Well after reading the docs, and some examples form books, I came up and tried to build a "prototype" of what I want. So I needed to load a initial view with 2 buttons, one will lead me to InfoViewController and the other one to an AuthenticationViewController, each one has its

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Gustavo Pizano
In fact I did slap in my head when I realized about the argumetns, after reading the first reply.. big DUH for me . Thanks for all the suggestions. G. On Jul 29, 2009, at 6:56 PM, David Duncan wrote: On Jul 29, 2009, at 4:52 AM, Brandon Walkin wrote: The arguments to that UIColor method

Re: Drag&Drop to desktop - file icons layout problem

2009-07-29 Thread I. Savant
On Jul 29, 2009, at 4:16 PM, Alexander Bokovikov wrote: Maybe it's a stupid question, but I can't find a solution... I'm dragging files from my app to desktop. All goes OK, but file icons are located one exactly above another if I'm dragging many items. As a result, few extra clicks on desk

Re: where can I download xcode 3.2

2009-07-29 Thread Henry McGilton (Boulevardier)
On Jul 28, 2009, at 12:22 AM, Kyle Sluder wrote: On Jul 27, 2009, at 10:38 AM, YongLi wrote: I have installed the snow leopardbut i can't find the download link of xcode 3.2 1. This is cocoa-dev. This list exists for the discussion of Cocoa, not for downloading seeds or other non-Cocoa

Drag&Drop to desktop - file icons layout problem

2009-07-29 Thread Alexander Bokovikov
Hi, All, Maybe it's a stupid question, but I can't find a solution... I'm dragging files from my app to desktop. All goes OK, but file icons are located one exactly above another if I'm dragging many items. As a result, few extra clicks on desktop are required to be able to split these ic

Re: something I can't understand

2009-07-29 Thread Bill Bumgarner
On Jul 29, 2009, at 12:20 PM, Agha Khan wrote: Well after spending whole 2 days on a such a small problem I understand this is a bug and Apple has to fix it. The bug is If you inherit for UIButton then it is not going to work. Given that this code is really really basic stuff, do you really

Re: Fun (or not) with NSArrayControllers and CoreData.

2009-07-29 Thread Quincey Morris
On Jul 29, 2009, at 11:27, Daniel DeCovnick wrote: I read over the Ensuring KVO compliance docs, and I have to say, I don't think I understand it. At first glance it looks fine to me, but obviously it's not. Do I have to implement mutableSet/ ArrayValueForKey: myself, or am I completely on t

Re: something I can't understand

2009-07-29 Thread Agha Khan
Thank you for reply. I am working with Windows for 15 years but new to Objective-C. Well after spending whole 2 days on a such a small problem I understand this is a bug and Apple has to fix it. The bug is If you inherit for UIButton then it is not going to work. It worked fine on CGPoint

Re: something I can't understand

2009-07-29 Thread Dragos Ionel
Actually it was my mistake as pointed by Glenn and Wagner. My apologies to have misled. Dragos iphodea.com On Wed, Jul 29, 2009 at 2:40 PM, Agha Khan wrote: > Hi Dragos lonal:I didn't mention they have readonly attributes. How can we > remove readonly attribute? > > Thanks for reply. > > Agh

Re: something I can't understand

2009-07-29 Thread Agha Khan
Hi Dragos lonal: I didn't mention they have readonly attributes. How can we remove readonly attribute? Thanks for reply. Agha On Jul 29, 2009, at 6:35 AM, Dragos Ionel wrote: verticalLoc and x are readonly values, you cannot assign them. use the frame property, first to retrieve it, chang

Re: Fun (or not) with NSArrayControllers and CoreData.

2009-07-29 Thread Daniel DeCovnick
On Jul 28, 2009, at 5:23 PM, Quincey Morris wrote: On Jul 28, 2009, at 16:44, Daniel DeCovnick wrote: -(NSSet *)allDescendentsJobs { ... } But I can't bind JobsArrayController's content set to this because "entity Folder does not support Key Value Coding for property 'allDescende

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Eric E. Dolecki
This is good to use: #define UIColorFromRGB(rgbValue) [UIColor \ colorWithRed:((float)((rgbValue & 0xFF) >> 16))/255.0 \ green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] ... cell.textColor = UIColorFromRGB(0x33); On Wed, Jul 29, 2009 at

Re: NSArrayController subclass computed property not being updated

2009-07-29 Thread Jim Correia
On Jul 29, 2009, at 1:09 AM, Alexander Heinz wrote: I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks to the canRemove: property, so that I can bind a "remove" button in Inter

Re: NSArrayController subclass computed property not being updated

2009-07-29 Thread Mike Abdullah
On 29 Jul 2009, at 06:09, Alexander Heinz wrote: Hello all, I've got an NSArrayController subclass with a computed property: @property (readonly) BOOL canRemoveSelection; (This basically adds some application-specific checks to the canRemove: property, so that I can bind a "remove" button

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Brian Slick
On Jul 29, 2009, at 12:56 PM, David Duncan wrote: On Jul 29, 2009, at 4:52 AM, Brandon Walkin wrote: The arguments to that UIColor method should be in the range of 0 to 1. Divide each RGB value by 255 to get them into that range. This is more of a PSA than anything (because I've seen more

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread David Duncan
On Jul 29, 2009, at 4:52 AM, Brandon Walkin wrote: The arguments to that UIColor method should be in the range of 0 to 1. Divide each RGB value by 255 to get them into that range. This is more of a PSA than anything (because I've seen more than a fair share of devs slap themselves on the h

Re: NSWindow reference remains null after window did load (SOLVED)

2009-07-29 Thread Daniel Child
No, the syntax was right. The problem mysteriously disappeared when I altered the timing of the method to redraw the table, including the time data is loaded. Thanks for your suggestions. On Jul 28, 2009, at 8:38 PM, Andy Lee wrote: Just to be sure -- your method is numberOfRowsInTableView:,

Re: rvalue vs lvalue (was Re: something I can't understand)

2009-07-29 Thread WT
On Jul 29, 2009, at 4:12 PM, glenn andreas wrote: On Jul 29, 2009, at 8:35 AM, Dragos Ionel wrote: verticalLoc and x are readonly values, you cannot assign them. use the frame property, first to retrieve it, change the x value and then to reassign to the button. something like CGFrame fr

rvalue vs lvalue (was Re: something I can't understand)

2009-07-29 Thread glenn andreas
On Jul 29, 2009, at 8:35 AM, Dragos Ionel wrote: On Wed, Jul 29, 2009 at 3:24 AM, Agha Khan wrote: On Jul 28, 2009, at 7:59 PM, Kiel Gillard wrote: On 29/07/2009, at 12:52 PM, Agha Khan wrote: Hi: I have a struct @interface PngButton : UIButton { @public bool OffPos; CGPoint h

Re: something I can't understand

2009-07-29 Thread Dragos Ionel
verticalLoc and x are readonly values, you cannot assign them. use the frame property, first to retrieve it, change the x value and then to reassign to the button. something like CGFrame frame = pPngButton.frame; frame.x = ...; pPngButton.frame = frame; Dragos On Wed, Jul 29, 2009 at 3:24 AM,

Re: NSArrayController and avoidsEmptySelection

2009-07-29 Thread I. Savant
On Jul 29, 2009, at 8:19 AM, Carmen Cerino Jr. wrote: I have an NSArrayController hooked up to an NSCollectionView. When a user clicks into the empty space of the NSCollectionView, I would like it so they do not lose their currently selected items. I would have thought it should have been as sim

Re: NSOpenPanel Exception/Bug

2009-07-29 Thread Adam R. Maxwell
On Jul 28, 2009, at 11:24 PM, Kyle Sluder wrote: On Jul 28, 2009, at 11:12 PM, Seth Willits wrote: Yes. It just fires off a task. Is there a particular reason you're doing this instead of using UTIs? LaunchServices only look at certain tags to determine a UTI, and the extension trump

NSArrayController and avoidsEmptySelection

2009-07-29 Thread Carmen Cerino Jr.
I have an NSArrayController hooked up to an NSCollectionView. When a user clicks into the empty space of the NSCollectionView, I would like it so they do not lose their currently selected items. I would have thought it should have been as simple as telling the NSArrayController to avoid empty selec

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Gustavo Pizano
OOO how could I forget that... grrr.. thanks ! :D On Jul 29, 2009, at 1:52 PM, Brandon Walkin wrote: The arguments to that UIColor method should be in the range of 0 to 1. Divide each RGB value by 255 to get them into that range. On 2009-07-29, at 6:34 AM, Gustavo Pizano wrote: Hello

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Brandon Walkin
The arguments to that UIColor method should be in the range of 0 to 1. Divide each RGB value by 255 to get them into that range. On 2009-07-29, at 6:34 AM, Gustavo Pizano wrote: Hello, well I found the reason of the exception. But still they color its not being changed if I put [UIColo

Re: Cahnging bgColor of a UIView not working.

2009-07-29 Thread Gustavo Pizano
Hello, well I found the reason of the exception. But still they color its not being changed if I put [UIColor blueColor] then it works, but it doesn't work with RGB doing [[UIColor alloc] initWithRed .. ] I tried also [UIColor colorWithCGColor:CGColorCreateGenericRBG()]; but the

Cahnging bgColor of a UIView not working.

2009-07-29 Thread Gustavo Pizano
Hello. Im trying to change the color of a UIView programatically but something is wrong. Im pressing a button which triggers an IBAction, which does the following: [[self view] setBackgroundColor:[UIColor colorWithRed:20.0 green:10.0 blue: 30.0 alpha:1.0]]; but when I press the butto

Re: NSOutlineView column sizing problems

2009-07-29 Thread Rob Keniger
On 29/07/2009, at 5:47 PM, Kyle Sluder wrote: That's not what automatic column resizing means. Automatic column resizing happens when the scroll view's frame changes. What do I have to do to achieve this behavior? You will need to somehow autosize your field editor and column in respons

Re: NSOutlineView column sizing problems

2009-07-29 Thread Kyle Sluder
On Jul 29, 2009, at 12:38 AM, Rob Keniger wrote: What I expect to happen is that if I enter some text in the leftmost column that is wider than the view, the column should be resized to hold the text and the horizontal scrollbar should appear. That's not what automatic column resizing mean

NSOutlineView column sizing problems

2009-07-29 Thread Rob Keniger
Hi all, I have an NSOutlineView with three columns. I want the first column to resize but I want to keep the last two columns at a fixed size. For the last two columns, I have set the min/max constraints to the same width and I have unchecked "Resizes with table" and "User resizable". T

Re: something I can't understand

2009-07-29 Thread Agha Khan
Hi: Thank you for your reply. Oh yes. It an Objective-C class. regardless I place (bVerticalDisplay == YES) or not. The function silently fails, with no warnings. The I decided to pPngButton.verticalLoc.x = (bVerticalDisplay == YES) ? 250 : 410; This time I got warning. error: lvalue requir

Re: NSOpenPanel Exception/Bug

2009-07-29 Thread Andy Lee
On Jul 29, 2009, at 2:12 AM, Seth Willits wrote: Yes. It just fires off a task. [...] I'd file a bug report on the exception being thrown, but heck if I can reproduce it. From your stack trace, it looks like the save panel is trying to display more rows than a particular column actually ha