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

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 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
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: 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

[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: 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

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: 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: 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

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: 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

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 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: 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: 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!

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: 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,

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: 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: 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: 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 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 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 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: 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: 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: 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: 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: 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: 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 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

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

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

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

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: 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: GC pros and cons

2009-06-25 Thread Chris Idou
From: Bill Bumgarner .. Bill I don't know if this was discussed before, but could you discuss the lack of GC on the iPhone? Access Yahoo!7 Mail on your mobile. Anytime. Anywhere. Show me how: http://au.mobile.yahoo.com/mail

Re: document specific "as-you-type" spell checking

2009-06-25 Thread Douglas Davidson
On Jun 25, 2009, at 5:00 PM, kvic...@pobox.com wrote: is it possible to do document specific (ie, use a document dictionary) "as-you-type" spell checking? ie, using NSTextFields and NSTextFieldCells, is it somehow possible to specify the spell document tag to be used by the field editor?

document specific "as-you-type" spell checking

2009-06-25 Thread kvic...@pobox.com
is it possible to do document specific (ie, use a document dictionary) "as-you-type" spell checking? ie, using NSTextFields and NSTextFieldCells, is it somehow possible to specify the spell document tag to be used by the field editor? thanx, ken ps. i know i've asked this question before in s

Re: Request assistance with GCC Warnings

2009-06-25 Thread Dave Carrigan
On Jun 25, 2009, at 4:13 PM, Eric Hermanson wrote: I realize this is really a GCC question, and not a Cocoa question, but I can't seem to find an adequate answer on the web. Considering I'm from a strictly Java background, I was hoping someone could clue me in to what the following two GC

Re: Number of images in main bundle folder (iPhone)

2009-06-25 Thread Eric E. Dolecki
Many thanks. On Thu, Jun 25, 2009 at 6:55 PM, Steve Christensen wrote: > You mean that quick perusal of NSBundle.h didn't turn up anything? Maybe my > headers are different from yours, but it was really easy to come up with > that line myself: > > NSUInteger jpegCount = [[[NSBundle mainBundle] p

Request assistance with GCC Warnings

2009-06-25 Thread Eric Hermanson
Hello, I realize this is really a GCC question, and not a Cocoa question, but I can't seem to find an adequate answer on the web. Considering I'm from a strictly Java background, I was hoping someone could clue me in to what the following two GCC warnings mean, if I should worry about th

Re: Number of images in main bundle folder (iPhone)

2009-06-25 Thread Steve Christensen
You mean that quick perusal of NSBundle.h didn't turn up anything? Maybe my headers are different from yours, but it was really easy to come up with that line myself: NSUInteger jpegCount = [[[NSBundle mainBundle] pathsForResourcesOfType:@"jpg" inDirectory:subDirName] count]; On Jun 25,

Re: NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error

2009-06-25 Thread Steve Steinitz
Hi Tristan On 25/6/09, cocoa-dev-requ...@lists.apple.com wrote: Is there something I must do with CoreData to ensure KVO compliance when using auto rearrange content? I have a small project I've created to demonstrate this issue if anyone would care to take a look... I've moaned about thi

Re: Debugging NSService

2009-06-25 Thread Peter Ammon
Hi Laurent, There are a number of reasons why your Service may not appear in the menu. Off the top of my head: 1) Your send and receive types may not be handleable by anything in the app. In particular, NSFilenamesPboardType is not vended by NSTextView, so I would expect your Service to

Number of images in main bundle folder (iPhone)

2009-06-25 Thread Eric E. Dolecki
iPhone: I saw someplace online where a guy got the count for the number of JPGs in a folder in the main bundle but I can't find that again. Can anyone supply the line of code that would return something like that? I'm googling now too and haven't found it yet. Thanks, Eric

Re: GC pros and cons

2009-06-25 Thread Peter Ammon
On Jun 25, 2009, at 1:42 PM, Bill Bumgarner wrote: On Jun 25, 2009, at 3:14 PM, Peter Ammon wrote: In any case, it's been my experience that GC makes memory management much easier, but precious resource management somewhat harder. It's harder because GC forces more of a divorce between t

Re: GC pros and cons

2009-06-25 Thread Peter Ammon
On Jun 25, 2009, at 1:16 PM, Peter Duniho wrote: On Jun 25, 2009, at 12:11 PM, Kyle Sluder wrote: [...] .NET users often call Dispose() explicitly, because it is useful in situations other than inside using blocks. Though, to be clear (lest the tendency to want to put down the other be

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 3:14 PM, Peter Ammon wrote: In any case, it's been my experience that GC makes memory management much easier, but precious resource management somewhat harder. It's harder because GC forces more of a divorce between the management of memory and precious resources, and th

Re: Programmatically Picking Elements

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 1:20 PM, Pierce Freeman wrote: > While there may be a more official name for them (outlets, maybe?), I > consider an "element" to be any element that goes on the screen.  For > instance a NSTextField or a NSImageView. Ah. Please do re-read the documentation, as it will at

Re: IBPlugin embedding question

2009-06-25 Thread Shawn Erickson
On Thu, Jun 25, 2009 at 11:33 AM, Doug Scott wrote: > Perhaps there is something basically wrong in the way I'm making IBPlugin > projects... That was essentially my point. I think you are trying to use them in a way that doesn't give you much benefit and possibly ignoring another way that may b

Re: icns to Icon\r

2009-06-25 Thread Michael Hanna
Hi Mike, no actually, I got it working from the command-line. The icnsConverter tool makes a .rsrc file(not Icon\r as previously stated) which I can use at the command line. Using ditto to copy the rsrc into the target pkg and then SetFile -a C on it creates the custom icon. Michael On Thu, Jun 2

Re: Recalculating NSTableView row sizes during a live column resize

2009-06-25 Thread Keith Blount
Thanks for your reply. I'm not so sure, though - I've tried overriding -inLiveResize to return NO no matter what, I've tried overriding -drawRect: and passing [self visibleRect] to super's -drawRect, and I've tried calling -display, -setNeedsDisplay: and -displayIfNeeded in various places, imme

Re: Programmatically Picking Elements

2009-06-25 Thread Pierce Freeman
Hi Kyle: While there may be a more official name for them (outlets, maybe?), I consider an "element" to be any element that goes on the screen. For instance a NSTextField or a NSImageView. I am more going for creating a UI on the server and then displaying it on the client side. Does this still

Re: Search in ABPeoplePickerView not working

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 2:58 AM, Nikhil Khandelwal wrote: > In my application i am running a Modal for a window and in that window there > is a button which calls another Panel (Modal is still running). In that Panel > i include ABPeoplePickerView to show the address. AbPeoplePickerView is > wor

Re: GC pros and cons

2009-06-25 Thread Peter Duniho
On Jun 25, 2009, at 12:11 PM, Kyle Sluder wrote: [...] .NET users often call Dispose() explicitly, because it is useful in situations other than inside using blocks. Though, to be clear (lest the tendency to want to put down the other be allowed to go too far)... The requirement in .NET th

Re: GC pros and cons

2009-06-25 Thread Peter Ammon
On Jun 25, 2009, at 12:11 PM, Kyle Sluder wrote: On Thu, Jun 25, 2009 at 11:39 AM, Peter Ammon wrote: Are you saying that it's not sloppy to close a file twice, unlock a lock twice, etc.? It sounds to me like you were originally referring to language implementation sloppiness, which has no

Re: Recalculating NSTableView row sizes during a live column resize

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 11:10 AM, Keith Blount wrote: > ...Except. Only the columns that are getting resized (the column the user is > dragging and the last auto-sized column in this case) get drawn correctly > with the new heights. All of the columns in-between - the columns whose > widths *are

Re: Application Support Folder

2009-06-25 Thread Anthony Smith
Sorry, I didn't see that it came though. I'm new to the list so I kept getting the moderator bounce back and assumed it didn't go through. I've actually submitted this question several times. Also, thanks for the feedback. I thought it was weird they implemented it using NSTemporaryDirector

Re: Programmatically Picking Elements

2009-06-25 Thread Kyle Sluder
What is an "element"? Sounds like you want to show/hide portions of your user interface based on the data you receive from the server. Or do you want the user to be able to create whatever UI they want on the server and show it on the client? You're going to have to write code to do it either wa

copyfile missing spotlight comments?

2009-06-25 Thread John McLaughlin
Hi All, I've got a need to get all of the Attributes of a file (including EA's) -- At wwdc I talked with some of the filesystems guys and they (very helpfully) pointed me at a few ideas including copyfile ( http://developer.apple.com/documentation/Darwin/Reference/Manpages/man3/copyfile.3.html ) W

Re: IBPlugin embedding question

2009-06-25 Thread Quincey Morris
On Jun 25, 2009, at 11:33, Doug Scott wrote: Perhaps there is something basically wrong in the way I'm making IBPlugin projects TBH, I think that there is. Two things: 1. You're insisting (as is your right) on using IBPlugin-based access to your A-view in your development project for IBPlu

Re: Debugging NSService

2009-06-25 Thread mmalc Crawford
On Jun 23, 2009, at 7:34 AM, Laurent Cerveau wrote: I want to add a service to my application. So I created the service entry in the plist, implemented the methods with proper signature, register the service at Application Did Finish launching time but unfortunately I never see my service

NSOutlineView selection disable

2009-06-25 Thread Arun
Hi All, 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? Thanks Arun ___ Cocoa-dev mailing list (Cocoa-dev@

Programmatically Picking Elements

2009-06-25 Thread Pierce Freeman
Hi Everyone: I am wondering if there is some way to pick the element type (and amount of them) shown in a xib file. I am working on an application that needs to take data from the server, and there are usually differing amounts of it. For example, User A chooses on the web for there to be 10 NSTe

Re: Application Support Directory Questions

2009-06-25 Thread Kyle Sluder
Did you not get my reply to the message you sent yesterday? If you did, please don't keep reposting to the list; we have high enough traffic as it is. If you didn't, check your spam folder or the list archives at either lists.apple.com or cocoabuilder.com to make sure your messages have gotten th

Re: GC pros and cons

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 11:39 AM, Peter Ammon wrote: > Are you saying that it's not sloppy to close a file twice, unlock a lock > twice, etc.? It sounds to me like you were originally referring to language implementation sloppiness, which has nothing to do with closing a file twice, unlocking lock

Re: Debugging NSService

2009-06-25 Thread Greg Guerin
Laurent Cerveau wrote: Simply retrying to see if there could be any idea on this one as I still have trouble getting success Obtain a working example of a service. Carefully compare what it does with what yours does. Revise as necessary. It's usually a lot simpler to start with something th

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 11:41 AM, Peter Duniho wrote: Well, as far as I'm concerned that's a bug then, and a somewhat silly one at that. There should be no reason they couldn't easily address that scenario, simply by using the thread attempting to do the allocation to run the collection code (w

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 10:56 AM, Alexander Spohr wrote: Am 25.06.2009 um 19:20 schrieb Doug Scott: It is just like dragging out a complex Apple provided object which contains embedded scrollers and such. I don't have to connect the Apple supplied scrollers to the Apple supplied scrolling vie

Re: Debugging NSService

2009-06-25 Thread Laurent Cerveau
Simply retrying to see if there could be any idea on this one as I still have trouble getting success Thanks for the help laurent On Jun 23, 2009, at 5:45 PM, Laurent Cerveau wrote: I realize I did not provide a lot of information. So the Plist of my apps looks like : NSServices

Re: GC pros and cons

2009-06-25 Thread Marcel Weiher
On Jun 25, 2009, at 0:54 , Peter Duniho wrote: Furthermore, it is more typical that there _is_ space already available on the heap to satisfy an allocation request, and in a typical GC system allocations are much faster than for the alloc/ free paradigm. I admit, I don't know the specific

Re: Ideas required on testing an application install

2009-06-25 Thread syntonica
If an new internal drive is not an option, partition and format an external USB and/or Firewire drive.  Make one partition for each of your target OSes and install them, one per partition.  Reboot and hold down the Option key.  Select the desired startup partition.  Enjoy. Basically, any moder

Re: Ideas required on testing an application install

2009-06-25 Thread Nick Zitzmann
On Jun 25, 2009, at 12:04 PM, Ramakrishna Vavilala wrote: In Windows I would normally create a clean Virtual Machine and install the application to make sure that everything is working properly on a clean machine. What kind of strategy should I use to do same level of testing on a Mac? In a

Re: GC pros and cons

2009-06-25 Thread Marcel Weiher
On Jun 24, 2009, at 22:49 , Greg Titus wrote: ...whereas this part talks specifically about the collector. Is there a downside in SnowLeopard to CFRetain/CFRelease when not using the collector? There's no _new_ downside to CFRetain/CFRelease. It's just the existing downside (collected

Re: GC pros and cons

2009-06-25 Thread Peter Ammon
On Jun 24, 2009, at 8:11 PM, Kyle Sluder wrote: On Wed, Jun 24, 2009 at 7:55 PM, Peter Ammon wrote: Microsoft even says that all objects must be robust against being Dispose()d multiple times, which smacks of sloppiness. If your program disposes of an object twice, then it is structured so

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 10:37 AM, Kevin Cathey wrote: You should not under any circumstances modify a XIB file outside of IB. I don't even build the darned things. When they first came out they messed up the build in ways I really didn't have time to figure out. I just set things to build the

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 10:36 AM, Kevin Cathey wrote: Doug, Normally IB plugins are intended to provide ways to add custom views (objects) and matching inspectors to configure those views (objects) not so much intended to do what I think you are trying to use it for. It sounds like you should in

Re: Ideas required on testing an application install

2009-06-25 Thread Michael Dautermann
On Thursday, June 25, 2009, at 11:04AM, "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. >What kind of strategy should I use to do same level of test

Re: Fixing logged error that doesn't throw exception

2009-06-25 Thread Quincey Morris
On Jun 25, 2009, at 02:34, Tristan Celder wrote: I'm extremely new to Cocoa programming but have come across a problem where I am getting a [NSConcreteAttributedString initWithString:] called with nil string argument. pop up in my console. I have had it once before and managed to track it d

Recalculating NSTableView row sizes during a live column resize

2009-06-25 Thread Keith Blount
Hello, I have a table view that has variable row heights based on the text in one of the columns. These row heights get recalculated at various times, and for the most part, all is good. Right now I'm trying to refine things a little, though, and one of the things that has always bugged me sli

Ideas required on testing an application install

2009-06-25 Thread Ramakrishna Vavilala
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 application to make sure that everything is working properly on

Re: Which drawing tool for a simple task

2009-06-25 Thread Steve Christensen
I can think of at least a couple of ways of doing that without creating a custom view: 1. Create a new image that is a composite of the original image and the border image, then set the view's image to the composite. 2. Create two image views that occupy the same space and put the border

Re: IBPlugin embedding question

2009-06-25 Thread Alexander Spohr
Am 25.06.2009 um 19:20 schrieb Doug Scott: It is just like dragging out a complex Apple provided object which contains embedded scrollers and such. I don't have to connect the Apple supplied scrollers to the Apple supplied scrolling view, Apple did it with embedding ( or could have if they

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Ramakrishna Vavilala
You need to call [imageBrowser reloadData]. When you call setSelectionIndexes there need to be items in the list calling reloadData will ensure that there are items. On Thu, Jun 25, 2009 at 12:19 PM, Richard Gutierrez wrote: > I did place this in the awakeFromNib... I also tried placing it in > "

Re: Which drawing tool for a simple task

2009-06-25 Thread I. Savant
On Jun 25, 2009, at 11:30 AM, M.S. Hrishikesh wrote: I want to display an image with a border around it. The border may be a simple coloured box or another image (like a wooden frame around an image). Can I do this using just a ImageView? I read parts of the Graphics and drawing guide. I a

Re: Fixing logged error that doesn't throw exception

2009-06-25 Thread Jesper Storm Bache
You should be able to set a break point on asl_send Jesper On Jun 25, 2009, at 2:34 AM, Tristan Celder wrote: Hi, I'm extremely new to Cocoa programming but have come across a problem where I am getting a [NSConcreteAttributedString initWithString:] called with nil string argument. pop up in m

Re: Hide Interface Builder Object?

2009-06-25 Thread Kevin Cathey
Any of Peter's solutions is what I would recommend as well. There is no built-in way to just "hide" an object from IB's design canvas while still having be in the document. If you feel this should not be the case, please file a bug. Kevin On 25 Jun 2009, at 01:21, Peter N Lewis wrote: S

Re: IBPlugin embedding question

2009-06-25 Thread Kevin Cathey
You should not under any circumstances modify a XIB file outside of IB. Kevin On 24 Jun 2009, at 16:10, WT wrote: Hi Doug, I don't have any experience in designing and implementing IB plugins, but I thought I'd pass along an observation that has served me well on occasions when I needed t

Re: IBPlugin embedding question

2009-06-25 Thread Kevin Cathey
Doug, Normally IB plugins are intended to provide ways to add custom views (objects) and matching inspectors to configure those views (objects) not so much intended to do what I think you are trying to use it for. It sounds like you should instead create a xib/nid that contains the shared objec

Re: NSArrayController's add: swaps entire content array when array is accessed via keypath

2009-06-25 Thread Quincey Morris
On Jun 25, 2009, at 07:31, Rick Hoge wrote: I recently tried a design where a certain object had an NSMutableDictionary instance variable, which in turn contained an NSMutableArray entry. After initializing this setup (in -init) as shown here: topLevelDictionary = [NSMutableDictionary d

Application Support Directory Questions

2009-06-25 Thread Anthony Smith
I'm beginning to delve into Core Data and I've been looking at the generated code for the Xcode Core Data project. I'm finding their implementation of -applicationSupportFolder interesting. They grab the NSApplicationSupportDirectory using NSSearchPathForDirectoriesInDomains, which makes se

Which drawing tool for a simple task

2009-06-25 Thread M.S. Hrishikesh
Hi I want to display an image with a border around it. The border may be a simple coloured box or another image (like a wooden frame around an image). Can I do this using just a ImageView? I read parts of the Graphics and drawing guide. I am not sure if I need to use a custom view for this

Re: Cocoa and email (SMTP/POP3) (thanks)

2009-06-25 Thread Isaac Alston
Hi, I just want to say thank you to everyone who responded to my question. -- Isaac ___ 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

NSArrayController "Auto Rearrange Content" causes "Cannot remove an observer for key path" error

2009-06-25 Thread Tristan Celder
Hi, I've been fighting an issue for some time now which seems to rear its head when I set Auto Rearrange Content to true on an NSArrayController. Whenever I do this it seems to throw a 'Can't remove an observer for key path "x". It always occurs when I am trying to access a relationship

Badge color in Leopard

2009-06-25 Thread Mika Kuuskankare
Hi, I'm a newbie on this list so hello everybody. I was wondering if somebody could tell me if it is possible to set/ change the background color of the badge (dockTile) in Leopard? The default seems to be red. I'm now calling this through a FFI but the call translates to something like thi

Fixing logged error that doesn't throw exception

2009-06-25 Thread Tristan Celder
Hi, I'm extremely new to Cocoa programming but have come across a problem where I am getting a [NSConcreteAttributedString initWithString:] called with nil string argument. pop up in my console. I have had it once before and managed to track it down to a NumberFormatter with no symbols se

Replacing chars in 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 h

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 9:52 AM, Shawn Erickson wrote: On Thu, Jun 25, 2009 at 9:35 AM, Doug Scott wrote: The point is that the way IB seems to work today is static when it must become dynamic if developers are to be able to embed IBPlugins within each other in the way I've done, which I've

  1   2   >