Re: drawing border of NSPopUpButtonCell drawInteriorWithFrame:inView:

2010-05-16 Thread Seth Willits
On May 15, 2010, at 7:17 PM, Shane wrote: > This is a data table header cell of type NSPopUpButtonCell where I'm > trying to draw the bottom border of the cell. > > The problem is that the border along the bottom of each > NSPopUpButtonCell only extends across part of the cell, not the entire > l

Why I can't see my localized nib?

2010-05-16 Thread Gustavo Pizano
Hello all. I was taking a look into localization, I check the docs at apple, and my Cocoa book, and I did as they said.. First I right clicked a nib file, and made it localizable, then add the French lang from the list. (this was a try out) Ok now I have 2 copies of the nib file one for eng

newbe view question

2010-05-16 Thread ronald b. kopelman
I am designing a small app that will accept a dropped folder, get its name & process it. Everything works fine. I can drop a folder on the dock icon or the app icon & get exactly what I want. I would like to drop the folder onto the app window while the app is running & get the same resu

Re: Framework linking errors

2010-05-16 Thread Keary Suska
On May 15, 2010, at 10:00 PM, Patrick Rutkowski wrote: > I should mention that the obvious suggestion of "You need to link your > framework against OpenSSL" is not what I'm looking for. Well, are you specifying -lssl and -lcrypto in other linker flags? If not, you must. > If I link my framewor

Re: newbe view question

2010-05-16 Thread Keary Suska
On May 16, 2010, at 7:19 AM, ronald b. kopelman wrote: > I am designing a small app that will accept a dropped folder, get its > name & process it. Everything works fine. I can drop a folder on the dock > icon or the app icon & get exactly what I want. I would like to drop the > folder on

Re: newbe view question

2010-05-16 Thread Scott Thompson
>> I had thought about subclassing the window's content view but, yuch, there >> must be a better way. I have perused the literature & if something is there >> I have missed it. Is there some way I can drop a folder onto a window or its >> content view & get the name of the folder? Please point

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

2010-05-16 Thread Henry McGilton
On May 16, 2010, at 4:06 AM, Gustavo Pizano wrote: > > > Hello all. > > I was taking a look into localization, I check the docs at apple, and my > Cocoa book, and I did as they said.. First I right clicked a nib file, and > made it localizable, then add the French lang from the list. (this

Re: Figuring out what's causing redrawing

2010-05-16 Thread Scott Andrew
Just a simple question. Do you have overlapping views going on? If you are overlapping a sibling that is being told to redraw, you will get redraw every time the sibling redraws.. Scott On May 13, 2010, at 12:52 PM, Nick Zitzmann wrote: > I've tried searching around but haven't found an answe

Re: newbe view question

2010-05-16 Thread Markus Spoettl
On May 16, 2010, at 9:19 AM, ronald b. kopelman wrote: > I am designing a small app that will accept a dropped folder, get its > name & process it. Everything works fine. I can drop a folder on the dock > icon or the app icon & get exactly what I want. I would like to drop the > folder ont

swipe gestures

2010-05-16 Thread Jeremy Matthews
So I'm working them into my app, and I noticed that I can't seem to use them in order to select a tabviewitem, but I can appear to do other things (logging, alerts, etc)? I checked my IBOutlets and everything is kosher there... Is there a limitation here I am unaware of? I can use tabviewitem se

Re: drawing into a hidden view

2010-05-16 Thread Seth Willits
On May 15, 2010, at 11:50 AM, Shane wrote: > I have an application which swaps NSViews based on which segment of an > NSSegmentedControl the user clicks on. There's one specific NSView in > which I draw a graph using NSBezierPath's. This view is initialized > once my application is started and alw

Re: add small (control size) column to table view

2010-05-16 Thread Scott Ribe
On May 14, 2010, at 5:35 PM, Scott Ribe wrote: > I'm dynamically setting up columns in a table view, and I cannot get them set > up to display as NSSmallControlsSize. I try: > > [[col dataCell] setControlSize: NSSmallControlSize]; > > Immediately before and immediately after [resu

UI blocking

2010-05-16 Thread Tobias Jordan
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 animations in OS X are blocking the UI, for example min

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

2010-05-16 Thread Alejandro Aragón
Hi everyone, I'm new to iPhone development and I'm really stuck at this point. I apologize for the lengthy email, but I wanted to provide all the relevant code. I've been trying to add a UITableView to an existing Utility Application programmatically. In order to add the UITableView to the flip si

Re: UI blocking

2010-05-16 Thread Charles Srstka
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

Re: new to cocoa

2010-05-16 Thread William Squires
I believe keys in an NSDictionary/NSMutableDictionary are NSStrings; they're just descriptive tags you attach (or associate) with an object (the "value"). What you need is [sourceButtonMap setObject:[NSString stringWithString:@"no"] forKey: [unitButton description]]; though you'll have to

Re: NSTreeController and remove:

2010-05-16 Thread Tony Romano
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 object implemented a me

Re: new to cocoa

2010-05-16 Thread Kyle Sluder
On Sun, May 16, 2010 at 5:19 PM, William Squires wrote: > I believe keys in an NSDictionary/NSMutableDictionary are NSStrings; they're > just descriptive tags you attach (or associate) with an object (the > "value"). What you need is Any object can be a key in an NSDictionary, but NSDictionary al

Re: new to cocoa

2010-05-16 Thread Jens Alfke
On May 16, 2010, at 5:19 PM, William Squires wrote: > I believe keys in an NSDictionary/NSMutableDictionary are NSStrings This is true in a property list; the serializer only knows how to read/write strings as dictionary keys. But in memory (or if you’re using the more powerful NSArchiver) you

Re: new to cocoa

2010-05-16 Thread Andy Lee
In addition to what others have pointed out... On May 16, 2010, at 8:19 PM, William Squires wrote: > [sourceButtonMap setObject:[NSString stringWithString:@"no"] > forKey:[unitButton description]]; ...there's no reason to use stringWithString:. You can just say: [sourceButtonMap setObject:@"no

Re: new to cocoa

2010-05-16 Thread Charles Srstka
On May 16, 2010, at 8:08 PM, Kyle Sluder wrote: >> [sourceButtonMap setObject:[NSString stringWithString:@"no"] >> forKey:[unitButton description]]; > > This is a bad idea. Who knows what -description returns? Using a > textual description of an object intended for debugging in place of > the act

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

2010-05-16 Thread Fritz Anderson
On 16 May 2010, at 5:06 PM, Alejandro Aragón wrote: > In the interface builder, I assigned the DetailViewController class to the > view. Now, in the FlipsideViewController class, I added the function that is > supposed to handle the action when the user clicks on a row: You should have set the cl

Re: Selecting rows in NSOutlineView from menuForEvent:?

2010-05-16 Thread Ryan C. Payne
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 applications. > > I think the "drop highlighting" thing a few Apple app

Regarding MVC design pattern

2010-05-16 Thread Sai
Hi All, I am new to cocoa development. Suppose I have an iPhone application follow the MVC design pattern. The Model is presented by an custom object. And I have declared an instance of the Model Object as a IBOutlet in my Controller class. I found that every time I start my application, this insta

TIPS : Using Add2Project to organize your projects more effectively.

2010-05-16 Thread Bill Hernandez
http://www.journey-of-flight.com/index.php Cocoa - Using Add to Project to Organize Your Projects More Effectively. Use Xcode Add2Project to automatically create a folder hierarchy that matches the Groups and Files virtual hierarchy... or you can reach the page directly at : http://www.journ

Re: Regarding MVC design pattern

2010-05-16 Thread Henry McGilton
On May 15, 2010, at 10:56 AM, Sai wrote: > Hi All, > I am new to cocoa development. Suppose I have an iPhone application follow > the MVC design pattern. > The Model is presented by an custom object. And I have declared an instance > of the Model Object as a IBOutlet > in my Controller class. On

Re: Regarding MVC design pattern

2010-05-16 Thread Quincey Morris
On May 15, 2010, at 10:56, Sai wrote: > Suppose I have an iPhone application follow > the MVC design pattern. > The Model is presented by an custom object. And I have declared an instance > of the Model Object as a IBOutlet > in my Controller class. I found that every time I start my application,