Re: Why I can't see my localized nib?

2010-05-17 Thread Gustavo Pizano
Sorry for the late reply.. I will try it today, but something weird is that I did a fresh new test project and didn't work either. G. On 16.5.2010, at 17:36, Henry McGilton wrote: > > On May 16, 2010, at 4:06 AM, Gustavo Pizano wrote: > >> >> >> Hello all. >> >> I was taking a look in

Re: NSTreeController and remove:

2010-05-17 Thread Joanna Carter
Hi Tony > Ok, here is the magical answer as to why the remove: didn't work. Nice > little warning in the Cocoa Bindings Programming topic: > > Warning: Providing the count key path to an NSTreeController instance > disables the add:,addChild:, remove:, removeChild:, orinsert: methods. > > My

Re: TIPS : Using Add2Project to organize your projects more effectively.

2010-05-17 Thread Joanna Carter
Hi Bill > Cocoa - Using Add to Project to Organize Your Projects More Effectively. I had already found out how to use this trick of dragging folders from Finder to Xcode to organise my projects, but your screenshots revealed something I didn't know - that I could drag applications to the Finder

Re: Looking for Cocoa Drawing Strategy Advice

2010-05-17 Thread Philip Regan
Thanks for the information! That's actually a bit disappointing to hear about the rulers but I'm glad I asked before I started to really dig in. I'll definitely check out DrawKit for the art. I had no idea that even existed. Cheers -- Philip Regan http://www.oatmealandcoffee.com On May 14, 2

Re: UI blocking

2010-05-17 Thread Paul Sanders
On May 16, 2010, at 3:37 PM, Tobias Jordan wrote: > Hey guys, > > I have a CA transition running which obviously doesn't support any blocking > modes (CABasicAnimation). I must block the UI during the transition so the > user can't click somewhere and something unexpected happens. I think all

Can't get the formatted number of NSTextfield

2010-05-17 Thread Gustavo Pizano
Hello all. I have a little problem here. I need to get the value of a textfiled which has a NSNumberFormatter with currency style. Now, Im doing: double d = [amountPayedTF doubleValue]; NSDecimalNumber * dm = (NSDecimalNumber *)[NSDecimalNumber number

Re: UI blocking

2010-05-17 Thread Uli Kusterer
On May 17, 2010, at 1:21 PM, Paul Sanders wrote: > The approach I use is to subclass NSApplication and throw awat mouse, > keyboard and gesture events in -[MySubclassedNSApplication sendEvent:] > instead of calling super. For added style, beep. For the OP's case, you don't even need to subclas

[iPhone] How to access the Cancel button in a search bar?

2010-05-17 Thread WT
The subject pretty much says it all. I need to access the Cancel button of a search bar, so I can change its title. I couldn't find a way to set an outlet to it in IB, and the docs don't show it as a property of the search bar. Any ideas? Thanks in advance. WT___

Re: Regarding MVC design pattern

2010-05-17 Thread Bill Hernandez
On May 17, 2010, at 12:33 AM, Quincey Morris wrote: > Your Model is being initialized because the NIB file that contains it is > being loaded. The gory details of what happens can be found here: > > > http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/LoadingResources/

Re: iPad interface orientation basics

2010-05-17 Thread sebi
On May 14, 2010, at 8:17 AM, David Duncan wrote: > On May 12, 2010, at 12:52 PM, sebi wrote: > >> hello, >> >> sorry, this is probably a very simple thing, but i am quite puzzled right >> now. >> >> when i do this in my view controller: >> >> - >> (void)didRotateFromInterfaceOrientation:(U

Re: UI blocking

2010-05-17 Thread Tobias Jordan
Thanks for your nice ideas guys, both solutions, subclassing NSApplication (overwriting -sendEvent:) and calling - nextEventMatchingMask:untilDate:inMode:dequeue: in a loop work. Now the only thing that's missing is disabling the application's menu since it's still clickable during animation

Re: UI blocking

2010-05-17 Thread Uli Kusterer
On May 17, 2010, at 6:08 PM, Tobias Jordan wrote: > Thanks for your nice ideas guys, both solutions, subclassing NSApplication > (overwriting -sendEvent:) and calling > -nextEventMatchingMask:untilDate:inMode:dequeue: in a loop work. Now the only > thing that's missing is disabling the applicati

Re: TUTORIAL: Generating Unique ID Strings

2010-05-17 Thread Jeffrey Oleander
> On Fri, 2010/05/14, Thomas Wetmore wrote: > From: Thomas Wetmore > Subject: Re: TUTORIAL: Generating Unique ID Strings > To: "Jens Alfke" > Cc: "CocoaDev" > Date: Friday, 2010 May 14, 12:30 > I must say that I am constantly > amused by the nanniness of the Apple discussion lists, > telling pe

Re: UI blocking

2010-05-17 Thread Tobias Jordan
You are right Uli, I'd definitely like to let the user decide what to do but when taking a look at Apple's OS X animations I have to say it's always completely blocking the UI so I thought that's a default behavior. I don't know yet whether I'll need to disable the MainMenu or not, it depen

Re: UI blocking

2010-05-17 Thread Mike Abdullah
Bear in mind most of the animations in the OS predate Core Animation, so tend to behave a little differently. Even so, take something like the Genie effect. It's possible to kill the animation midway and have a distorted, but usable window. On 17 May 2010, at 17:28, Tobias Jordan wrote: > You

Re: UI blocking

2010-05-17 Thread Kyle Sluder
On Mon, May 17, 2010 at 9:21 AM, Uli Kusterer wrote: >  Can't you just not not ask for mouseDown events in your event mask while > running your event loop? My guess would be that that would keep any menus > from opening. Gah! That would be a bad idea. The HIG says menus should always be openabl

Re: creating a UITableView on an "Utility application" project

2010-05-17 Thread Alejandro Marcos Aragón
Hi Matej, Thanks for your answer. I checked what you said and indeed the pointer is null. What I don't understand, is how this application doesn't have a UINavigationController. How am I switching between the front and back view if there isn't a navigation controller? I used the code you sugges

Re: creating a UITableView on an "Utility application" project

2010-05-17 Thread Alejandro Marcos Aragón
Hi Fritz, thanks for your reply. I actually did what you said, that was not the problem. It seems that the "Utility Application" doesn't have a UINavigationController, so the pointer I was trying to push the view on was nil. I'm trying to figure out how to change the code of the "Utility Applic

Subject: Re: iPad interface orientation basics

2010-05-17 Thread Gordon Apple
If you think that's confusing, wait until you try to use an external monitor and see what the rotation does to you. So far, I've successfully managed to counter-rotate the external view's window so my text stays upright, but getting the view and its contents to scale properly is proving more elusi

Style Advice for using NSEnumerator

2010-05-17 Thread Carlton Gibson
Hi All, I'm still coming to grips with Cocoa and I'm wondering if any list members would be kind enough just to review a small code fragment for style advice... The following occurs as part of the drawRect method of a UIView subclass. The method simply draws concentric circles inside the view

Re: iPad interface orientation basics

2010-05-17 Thread Rafael Cerioli
First, make sure the "interfaceOrientation" property is correct on your view controller after the rotation. If it's the case, check that your view can be resized properly (either with autoresizing masks or with a custom layoutSubviews, or any other custom mechanism). If it's not the case, it m

TIPS : Printing Apple Docs Selectively

2010-05-17 Thread Bill Hernandez
This is something I found useful, so I documented it, and thought I'd share it... Listed under : Cocoa - Printing Documentation Cocoa - Tips for printing selected portions of the documentation... At : http://www.journey-of-flight.com/index.php or you can reach the page directly at : http://

Re: Style Advice for using NSEnumerator

2010-05-17 Thread Ignacio Enriquez
I think is fine but If I were you I probably will try to find some kind of function that gives me the same result as using enumerators For example in this case I will use UIColor colorWithRed:green:blue:alpha method and use the radius to determine components of a color When numerator objects ar

Re: Style Advice for using NSEnumerator

2010-05-17 Thread Quincey Morris
On May 17, 2010, at 06:32, Carlton Gibson wrote: > // Set up the stroke colors (and the variables for enumeration) > NSArray *strokeColors = [NSArray arrayWithObjects: >@"redColor", @"orangeColor", @"yellowColor", @"greenColor", >@"blueColor", @"cyanColor", @"magentaColor", nil]; > NSEnum

Re: Can't get the formatted number of NSTextfield

2010-05-17 Thread Fritz Anderson
On 17 May 2010, at 7:15 AM, Gustavo Pizano wrote: > > I need to get the value of a textfiled which has a NSNumberFormatter with > currency style. > > Now, Im doing: > > double d = [amountPayedTF doubleValue]; > NSDecimalNumber * dm = (NSDecimalNumber *)[NSDe

Re: Can't get the formatted number of NSTextfield

2010-05-17 Thread Gustavo Pizano
HEllo Fritz Yep. Im using the obejctValue of the TextField and getting the DecimalNumber now. and Im changing that double as you suggested. Thanks for the reply. On 17.5.2010, at 22:51, Fritz Anderson wrote: > On 17 May 2010, at 7:15 AM, Gustavo Pizano wrote: > >> >> I need to get the val

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-05-17 Thread Corbin Dunn
On May 15, 2010, at 12:31 AM, Ryan C. Payne wrote: > On Apr 9, 2010, at 15:17, Nick Zitzmann wrote: > >> >> On Apr 9, 2010, at 3:42 PM, Laurent Daudelin wrote: >> >>> However, the selection is the standard highlight, not the outline I see in >>> any other table views in other Apple applicatio

Re: Re: Why I can't see my localized nib?

2010-05-17 Thread Lorenzo Thurman
Sorry for the late reply.. I will try it today, but something weird is that I did a fresh new test project and didn't work either. Just a stab in dark, but does your Language and Text setup match the localization?For example, you have a French localization (fr_FR), but are you setup fo

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread Michael Diehr
I'm in rather the opposite boat -- my app does NOT trigger the switch to NVIDIA, and my OpenGL calls fail (actually, it's more complicated that this as it's a screensaver and a helper app) but it sounds like if I simply link my bundle to one of the GL frameworks (even if I don't need it?) that w

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread David M. Cotter
http://codykrieger.com/gfxCardStatus/ On May 17, 2010, at 4:10 PM, Michael Diehr wrote: > I'm in rather the opposite boat -- my app does NOT trigger the switch to > NVIDIA, and my OpenGL calls fail (actually, it's more complicated that this > as it's a screensaver and a helper app) but it sound

Re: UI blocking

2010-05-17 Thread Tobias Jordan
Hey guys, it's funny, I just found a way of handling the animation without blocking the UI. I thought it's impossible to be in control of everything then but that's obviously not true. :-) Thanks to everyone! Best regards, Tobias Jordan. On May 17, 2010, at 7:02 PM, Kyle Sluder wrote: On

Re: UI blocking

2010-05-17 Thread Tobias Jordan
Well, it's easy. I just created an animation queue, thus if one transition is called while another one is still running (busy), it is put into an array and executed when the running animation has finished. It works pretty awesome! — Tobias. On May 18, 2010, at 2:42 AM, Jack Carbaugh wrote:

Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:

2010-05-17 Thread Shane
> Well I don't know what you're seeing exactly, but the cells in a table view > are spaced out. > > - (void)setIntercellSpacing:(NSSize)aSize > > The default intercell spacing is (3.0, 2.0). > I've attached a small screenshot of what I'm seeing. <>___

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread Michael Diehr
Update: it appears as if instantiating a dummy NSOpenGLView in my master process helps the issue. I'm not clear whether I actually need to go so far as to create the NSOpenGLView and add it as a subview, or if simply linking with the OpenGL framework is sufficient. Also - not sure what pixel f

Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:

2010-05-17 Thread Seth Willits
On May 17, 2010, at 5:48 PM, Shane wrote: > [path moveToPoint:NSMakePoint(cellFrame.origin.x, cellFrame.size.height)]; > [path lineToPoint:NSMakePoint(cellFrame.size.width, cellFrame.size.height)]; If cellFrame = {500, 300, 120, 20} You're drawing from {500, 20} to {120, 20} -- Seth Willits

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread Dave Keck
> I'm in rather the opposite boat -- my app does NOT trigger the switch to > NVIDIA, and my OpenGL calls fail (actually, it's more complicated that this > as it's a screensaver and a helper app) but it sounds like if I simply link > my bundle to one of the GL frameworks (even if I don't need it?

Re: My program causes MacBook Pro to use NVidia graphics processor

2010-05-17 Thread Michael Diehr
On May 17, 2010, at 6:41 PM, Dave Keck wrote: >> I'm in rather the opposite boat -- my app does NOT trigger the switch to >> NVIDIA, and my OpenGL calls fail (actually, it's more complicated that this >> as it's a screensaver and a helper app) but it sounds like if I simply link >> my bundle to

Re: creating a UITableView on an "Utility application" project

2010-05-17 Thread Matej Bukovinski
A navigation controller is not something that you can expect to be always there. It has to be created first - ether in code or in interface builder. The flip isn't managed by a navigation controller. The main view controller is simply presenting modal view controller (every UIViewController can

Project Builder Files -> XCode

2010-05-17 Thread David Arnold
Hi, I am trying to open the really old projects at the following link in the current version of XCode. Examples I am not having success. Can someone supply some pointers? David Arnold College of the Redwoods___ Cocoa-dev mailing list (Cocoa-dev@lis

BarView won't run

2010-05-17 Thread David Arnold
Hi, I am trying to follow the app out of chapter 15 of Cocoa Applications, a step-by-step guide, with example code at: Examples My BarView.m follows: #import "BarView.h" @implementation BarView - (IBAction)takePercentage:(id)sender { [self setPercentage:[sender floatValue] ]; } /* desig

Re: creating a UITableView on an "Utility application" project

2010-05-17 Thread Alejandro Marcos Aragón
That worked like a charm! Thank you Matej... aa On May 17, 2010, at 1:32 PM, Matej Bukovinski wrote: > A navigation controller is not something that you can expect to be always > there. It has to be created first - ether in code or in interface builder. > The flip isn't managed by a navigation

Re: Why I can't see my localized nib?

2010-05-17 Thread Gustavo Pizano
MMM I dunno about that.. I was just selecting French from the pop up list when I clicked the "Make localizable" button under info of the xib file, and then I put in the first position of the lang list under system preferences French language... re build re run and nothing, I logout and login ag

Re: Project Builder Files -> XCode

2010-05-17 Thread Nick Zitzmann
On May 17, 2010, at 12:46 PM, David Arnold wrote: > I am trying to open the really old projects at the following link in the > current version of XCode. > > Examples > > I am not having success. Can someone supply some pointers? This is really a question for the xcode-users list, but anyway,