Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Graham Cox
On 26/06/2009, at 2:19 AM, Richard Gutierrez wrote: NSArray* path = [NSArray arrayWithObject:url]; if (path) { [NSThread detachNewThreadSelector:@selector(addImagesWithPaths:) toTarget:self withObject:path]; } [imageBrowser setSelectionIndexes:[NSIndexSet indexSetWithIndex

Re: NSOutlineView selection disable

2009-06-25 Thread Graham Cox
On 26/06/2009, at 5:38 AM, Arun wrote: I have an application in which i use NSOutlineView Control. I need to disable selection of items in the outlineview when the mouse is down and select only on mouse up like in iTunes. Any ideas? You asked the same question yesterday - if you didn't ge

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 7:58 PM, Chris Idou wrote: Bill I don't know if this was discussed before, but could you discuss the lack of GC on the iPhone? Not enough hours in the day to get everything done (No, I can't speculate about things that don't exist). b.bum

NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Peter Zegelin
Hello, I have come across what seems to be a weird situation and can't really think of a good solution. I'm relatively new to Cocoa so its probably just a simple misunderstanding. I have a subclass of NSViewController that also acts as the delegate for the NSTableView that it controls. T

Substituting characters in a UITextField

2009-06-25 Thread DKJ
I'd like to make some character substitutions in a UITextField while the user is typing. For example, when the user types "C", I'd like an arrow (\u2192) to appear in the textfield instead. I've been playing with the textField:shouldChangeCharactersInRange delegate method. But I don't see

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Keary Suska
On Jun 25, 2009, at 7:33 PM, Peter Zegelin wrote: I have come across what seems to be a weird situation and can't really think of a good solution. I'm relatively new to Cocoa so its probably just a simple misunderstanding. I have a subclass of NSViewController that also acts as the delega

Re: Substituting characters in a UITextField

2009-06-25 Thread Kyle Sluder
You asked this question *this morning.* Please don't spam the list. If someone has an idea and feels like responding, they will. At the moment, I lack the former and am becoming far more disinclined towards the latter. --Kyle Sluder ___ Cocoa-dev mail

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Graham Cox
On 26/06/2009, at 11:33 AM, Peter Zegelin wrote: I always thought awakeFromNib would get called first. But in this case not so. So can anyone suggest why, and a workaround? This sounds a bit odd, and I can't say why. But I can offer a workaround: -(int)numberOfRowsInTableView:(NSTableVi

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 6:33 PM, Peter Zegelin wrote: > Unfortunately my numberOfRowsInTableView is being called 'before' > awakeFromNib, so initially numColumns = 0 and I get an error > (myDataSize/numColumns will be infinite). So set a flag in -awakeFromNib. Check this flag in -numberOfRowsInTa

Re: NSDate scope

2009-06-25 Thread John Baldwin
I've gone back to my code and tried to reproduce the error. Now I can't. So I was doing something else stupid that I've since changed. Now if I do the usual [[NSDate alloc] init] it seems to be behaving as expected. [NSDate date] can generate the error, but that doesn't surprise me. John

Re: Substituting characters in a UITextField

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 7:03 PM, DKJ wrote: > It never showed up in my inbox. All I got was a message saying it was being > moderated. Aha. Sorry for sniping at you. (As you might be aware, there are occasionally instances where people repeatedly post to the mailing list, knowing full well that

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Peter Zegelin
On 26/06/2009, at 11:54 AM, Keary Suska wrote: On Jun 25, 2009, at 7:33 PM, Peter Zegelin wrote: I have come across what seems to be a weird situation and can't really think of a good solution. I'm relatively new to Cocoa so its probably just a simple misunderstanding. I have a subclas

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Peter Zegelin
On 26/06/2009, at 11:55 AM, Kyle Sluder wrote: On Thu, Jun 25, 2009 at 6:33 PM, Peter Zegelin wrote: Unfortunately my numberOfRowsInTableView is being called 'before' awakeFromNib, so initially numColumns = 0 and I get an error (myDataSize/numColumns will be infinite). So set a flag in -awak

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 9:20 PM, Rob Keniger wrote: In single-core systems, even on the Mac, performance of Garbage Collected code is very poor because the collector has to share CPU time with the main thread. When Xcode 3 (a GC app) was first released in the Leopard betas there were still quite

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Quincey Morris
On Jun 25, 2009, at 19:14, Peter Zegelin wrote: Well I guess the question then becomes 'where is earlier'! I tried overloading NSViewController::loadView and it also gets called 'after' the first call to numberOfRowsInTableView. If I have the 3 methods awakeFromNib, numberOfRowsInTableView an

Re: GC pros and cons

2009-06-25 Thread Rob Keniger
On 26/06/2009, at 10:58 AM, Chris Idou wrote: Bill I don't know if this was discussed before, but could you discuss the lack of GC on the iPhone? I suspect it is for performance reasons. The Objective-C garbage collector is designed to run in a separate thread on the Mac, which mean

Re: Ideas required on testing an application install

2009-06-25 Thread Peter N Lewis
On 26/06/2009, at 2:04 , Ramakrishna Vavilala wrote: I just finished converting (rewriting) a windows application to work on Mac OSX. I made a package for my application. Now I want to test it on a clean machine. In Windows I would normally create a clean Virtual Machine and install the applicat

Re: Quick DO endian question

2009-06-25 Thread Michael Vannorsdel
Thanks for the confirmation. I did some testing using Rosetta and didn't see endian problems but I wanted to make sure this was intended and reliable on actual PPC and not just an anomaly leading me to believe the byte swapping was automatic for explicit types. On Jun 24, 2009, at 10:54 P

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Peter Zegelin
On 26/06/2009, at 12:40 PM, Quincey Morris wrote: On Jun 25, 2009, at 19:14, Peter Zegelin wrote: Well I guess the question then becomes 'where is earlier'! I tried overloading NSViewController::loadView and it also gets called 'after' the first call to numberOfRowsInTableView. If I have t

Re: GC pros and cons

2009-06-25 Thread Chris Idou
I still use XCode in one location where I work on a core-solo Mini. Performance is good. No problems at all, no pauses. From: Rob Keniger To: cocoa-dev Dev Sent: Friday, 26 June, 2009 12:20:48 PM Subject: Re: GC pros and cons On 26/06/2009, at 10:58 AM,

Open Position at IRCAM: MacOSX GUI Developper (C++/Objective-C)

2009-06-25 Thread axel roebel
JOB TITLE: MacOS X User Interface Developer (C++/Objective-C) INSTITUTE: IRCAM is a leading non-profit organization dedicated to musical production, R&D and education in acoustics and music. The organization is located in the center of Paris (France), next to the Pompidou Center. It hosts compose

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Quincey Morris
On Jun 25, 2009, at 20:02, Peter Zegelin wrote: Go easy on me here - but I just have a regular NSTableView - no subclass. The NSViewController - which is subclassed -is the delegate and handles numberOfRowsInTableView/ objectValueForTableColumn. So why didn't my question make sense? Eek!

Re: GC pros and cons

2009-06-25 Thread Michael Ash
On Thu, Jun 25, 2009 at 4:14 PM, Peter Ammon wrote: > 2) Require that malloc be robust against multiple free()s on the same > pointer > > The second solution is a lot easier to implement. Can you elaborate on this? Thinking about how to accomplish this, it seems like an extremely difficult problem

Re: GC pros and cons

2009-06-25 Thread Adam R. Maxwell
On Jun 25, 2009, at 8:19 PM, Chris Idou wrote: I still use XCode in one location where I work on a core-solo Mini. Performance is good. No problems at all, no pauses. Interesting. I found the Xcode editor to be unusably slow on a PowerBook G4 when Leopard was released; in fact, contrary t

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Graham Cox
On 26/06/2009, at 1:24 PM, Quincey Morris wrote: After all, the non-band-aid way is almost as easy: I wholeheartedly agree - this was me just not taking the trouble to understand the real issue. However, in my defence I'd say that any time you perform a division by a value that somethi

Re: GC pros and cons

2009-06-25 Thread Chris Idou
I guess the necessity to scan and page in memory is a legitimate downside for VM systems. It's possible I've seen xcode pause when switching apps, but never thought about it being related to GC scans, but just paging in the app. I'd probably forgotten that XCode is GC. ...of course, the iPhon

validModesForFontPanel woes

2009-06-25 Thread David Reitter
Hello, I'm trying to configure a font panel using validModesForFontPanel:. Unfortunately I can't get this to work right. I can influence the visibility of some of the elements, except that it doesn't do what it is told to do... For instance, the following gives me options for document c

Re: Ideas required on testing an application install

2009-06-25 Thread Andy Lee
Just the other day Bill Bumgarner posted how he does it over on the xcode-users list: Although not as convenient as running a virtual machine this sounds like a very good system. A couple of notes: * After booting from th

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 10:32 PM, Adam R. Maxwell wrote: Interesting. I found the Xcode editor to be unusably slow on a PowerBook G4 when Leopard was released; in fact, contrary to Bill's statement, I found that it grew worse in the last few months of Leopard seeding. I'm still sore about havi

Re: NSViewController awakeFromNib and NSTableView numberOfRowsInTableView

2009-06-25 Thread Peter Zegelin
On 26/06/2009, at 1:24 PM, Quincey Morris wrote: After all, the non-band-aid way is almost as easy: - (id) initWithNibName: (NSString*) nibNameOrNil bundle: (NSBundle*) nibBundleOrNil { self = [super initWithNibName: nibNameOrNil bundle: nibBundleOrNil]; if (!self)

Re: Ideas required on testing an application install

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 11:09 PM, Andy Lee wrote: * It annoys me to wait for CDs/DVDs to boot, so (like another person who posted) I like to have a small bootable partition on a hard drive somewhere. Someone else pointed out you can boot from a thumb drive, which is a great idea I will have to

[Moderator] Re: Amount of Arguments per Method

2009-06-25 Thread Scott Anguish
This thread is closed. ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription

Re: Amount of Arguments per Method

2009-06-25 Thread Ken Ferry
Not a method, but NSCell.h has a function with 13 arguments. APPKIT_EXTERN void NSDrawNinePartImage(NSRect frame, NSImage *topLeftCorner, NSImage *topEdgeFill, NSImage *topRightCorner, NSImage *leftEdgeFill, NSImage *centerFill, NSImage *rightEdgeFill, NSImage *bottomLeftCorner, NSImage *bottomEdg

Re: GC pros and cons

2009-06-25 Thread James Gregurich
I'll speak up and throw a wrinkle into this discussion. I found it useful and may some others will also. I have read up on GC, and I don't like the idea of introducing non- deterministic behavior into my code base. However, it is true that manually retaining and releasing pointers is inher

Re: GC pros and cons

2009-06-25 Thread Stephen J. Butler
On Fri, Jun 26, 2009 at 12:06 AM, James Gregurich wrote: > I also take advantage of references in C++ to pass objc objects around > without having to do null checks all over the place to keep code resilent. > > -(void) passMyObject: (NSObject&) theObj > { >NSLog(@"%@", &theObj); > } > > sin

Re: GC pros and cons

2009-06-25 Thread James Gregurich
consistently using the technique pushes the null check to one or two placessuch as when the pointer is alloc'ed. regardless of whether messaging nil is a problem or not, if nil isn't a a valid state for a variable, I check it and throw an exception as a matter of defensive programming

Re: GC pros and cons

2009-06-25 Thread Chris Idou
From: James Gregurich > I have read up on GC, and I don't like the idea of introducing > non-deterministic behavior into my code base. I would question the assertion that GC introduces non-deterministic behavior, unless you consider the time it takes for p

<    1   2