Re: UML Diagramming or Other Helpful Software

2009-06-25 Thread Philip Mötteli
Am 24.06.2009 um 17:16 schrieb Dennis Christopher: Has anyone found a diagramming package that will reverse engineer Cocoa code and output a UML diagram from it? OmniGraffle, Xcode and Visual-Paradigm. ___ Cocoa-dev mailing list

Design for custom tableviewcell button action

2009-06-25 Thread Bryan Hansen
I'd like to add a custom button to my own custom tableview subclass that will perform an action on the tableviewcontroller class. This is pretty much identical to the way accessoryviews call a method on the tableviewdelegate when it is tapped. The difference is it will be my own button

Re: icns to Icon\r

2009-06-25 Thread Jean-Daniel Dupas
Le 25 juin 09 à 00:45, Michael Hanna a écrit : Hi all, my goal is to create custom installer icons for a couple of Installer .pkg packages. I'm following the instructions at: http://www.khiltd.com/Downloads/prettypackages.html At the section Into the Fray he suggests to use the Finder to

Re: IBPlugin embedding question

2009-06-25 Thread Alexander Spohr
Am 25.06.2009 um 00:46 schrieb Doug Scott: I have developed a small series of custom IBPlugin framework projects, two of which include other custom IBPlugin objects. Here is a quick overview of the hierarchy. - IBPlugin-A: A view with a custom API. - IBPlugin-B: A view which adds a set of

Re: GC pros and cons

2009-06-25 Thread Peter Duniho
On Jun 24, 2009, at 9:15 PM, Jeff Laing wrote: 1. If your objects use (scarce) resources that are not themselves subject to GC (file handles, network connections, whatever), you'd be [snip] 2. If you expect objects to be returned to the free memory pool the instant that those objects aren't

Re: Design for custom tableviewcell button action

2009-06-25 Thread Alexander Spohr
Set your controller as the buttons taget: – addTarget:action:forControlEvents: UIControlEventTouchUpInside atze Am 25.06.2009 um 08:30 schrieb Bryan Hansen: I'd like to add a custom button to my own custom tableview subclass that will perform an action on the tableviewcontroller

Re: Design for custom tableviewcell button action

2009-06-25 Thread WT
Hi Bryan, I had exactly the same problem and here's how I solved it. I have a custom table view cell in a separate nib file whose File Owner's class is the table view controller class. I then have an IB action defined in the table view controller class and I link the button in the cell

Re: Hide Interface Builder Object?

2009-06-25 Thread Peter N Lewis
On 25/06/2009, at 8:47 , Chunk 1978 wrote: i have a simple black NSView that is positioned the top index level of the main view, covering all other visual elements in IB. it's purpose is to fade out, so the view appears to fade in. i have to often move it out of the way, and i also set it to

Re: Design for custom tableviewcell button action

2009-06-25 Thread Alexander Spohr
Am 25.06.2009 um 10:16 schrieb WT: I had exactly the same problem and here's how I solved it. Why didn’t you put the cell into the controllers nib? Make an outlet in your controller to reach the cell and just return it when you need it? The second nib seems to much work. And you get a

linking error

2009-06-25 Thread WT
Hello list, I have a linking error that is puzzling me and I'd be grateful for some enlightenment. In AppDelegate.h: #import SharedDefs.h In AppDelegate.m: #import AppDelegate.h #import SomeClass.h In SomeClass.m: #import SomeClass.h #import SharedDefs.h SharedDefs.h contains

Re: Design for custom tableviewcell button action

2009-06-25 Thread WT
On Jun 25, 2009, at 10:26 AM, Alexander Spohr wrote: Am 25.06.2009 um 10:16 schrieb WT: I had exactly the same problem and here's how I solved it. Why didn’t you put the cell into the controllers nib? Make an outlet in your controller to reach the cell and just return it when you need it?

Re: linking error

2009-06-25 Thread Dave Keck
The link error is pretty self-explanatory. To solve issues like this, I'd first change the header like so: extern NSString *const someString; and create a SharedDefs.m: NSString *const someString = @halla; This way, any object file can reference someString, but only one object file

Re: linking error

2009-06-25 Thread Alexander Spohr
Each inclusion of your header somewhere creates a new global variable named someString. Change it to have extern NSString* const someString; in SharedDefs.h and NSString* const someString = @foo; in SharedDefs.m If you have no SharedDefs.m just crete one ;) atze Am 25.06.2009

Re: linking error

2009-06-25 Thread WT
On Jun 25, 2009, at 11:38 AM, Dave Keck wrote: The link error is pretty self-explanatory. To solve issues like this, I'd first change the header like so: extern NSString *const someString; and create a SharedDefs.m: NSString *const someString = @halla; This way, any object file can

Re: Design for custom tableviewcell button action

2009-06-25 Thread Alexander Spohr
Am 25.06.2009 um 10:54 schrieb WT: On Jun 25, 2009, at 10:26 AM, Alexander Spohr wrote: Why didn’t you put the cell into the controllers nib? Make an outlet in your controller to reach the cell and just return it when you need it? Because -tableView:cellForRowAtIndexPath: needs to return

Re: linking error

2009-06-25 Thread WT
On Jun 25, 2009, at 11:46 AM, WT wrote: On Jun 25, 2009, at 11:38 AM, Dave Keck wrote: The link error is pretty self-explanatory. To solve issues like this, I'd first change the header like so: extern NSString *const someString; and create a SharedDefs.m: NSString *const someString =

Re: linking error

2009-06-25 Thread WT
Yes, I just realized that. Silly mistake. Thanks for responding. Wagner On Jun 25, 2009, at 11:44 AM, Alexander Spohr wrote: Each inclusion of your header somewhere creates a new global variable named someString. Change it to have extern NSString* const someString; in SharedDefs.h and

Search in ABPeoplePickerView not working

2009-06-25 Thread Nikhil Khandelwal
Hi List, 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 working but the search field in ABPeoplPickerView is not

Re: Design for custom tableviewcell button action

2009-06-25 Thread WT
On Jun 25, 2009, at 11:46 AM, Alexander Spohr wrote: Am 25.06.2009 um 10:54 schrieb WT: On Jun 25, 2009, at 10:26 AM, Alexander Spohr wrote: Why didn’t you put the cell into the controllers nib? Make an outlet in your controller to reach the cell and just return it when you need it?

Re: Design for custom tableviewcell button action

2009-06-25 Thread Alexander Spohr
Am 25.06.2009 um 12:20 schrieb WT: On Jun 25, 2009, at 11:46 AM, Alexander Spohr wrote: Of course, you are right. I forgot that the OP wanted something like an accessory which needs to be repetitive. Even with a custom cell with no extra controls, you'd need to return a different cell

Re: Design for custom tableviewcell button action

2009-06-25 Thread WT
On Jun 25, 2009, at 12:36 PM, Alexander Spohr wrote: Am 25.06.2009 um 12:20 schrieb WT: On Jun 25, 2009, at 11:46 AM, Alexander Spohr wrote: Of course, you are right. I forgot that the OP wanted something like an accessory which needs to be repetitive. Even with a custom cell with no

Applying filter effects

2009-06-25 Thread Mahaboob
Hi, I'm applying filter effects to my graphics in drawRect: method. I need to draw the selection handles for graphics after applying filters. is it possible to apply the filters from slider action methods of filters? Now I'm using the code in drawRect: method is : NSRect _tFr = [self bounds];

Re: icns to Icon\r

2009-06-25 Thread Michael Hanna
I forgot to mention that I would like to do this from the command-line in order to automate the process. I found a solution: someone suggested I use icnsConverter and that seems to generate an Icon\r. Have not tested it yet though. Michael On Thu, Jun 25, 2009 at 3:33 AM, Jean-Daniel Dupas

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

2009-06-25 Thread Rick Hoge
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 dictionary]; // An instance variable -

Re: Amount of Arguments per Method

2009-06-25 Thread mmalc Crawford
On Jun 23, 2009, at 9:14 AM, WT wrote: On Jun 23, 2009, at 4:57 PM, mmalc Crawford wrote: On Jun 23, 2009, at 4:05 AM, WT wrote: Let's start with bug reporting, which is of general relevance to developers here: Whether or not it's an actual *error* is immaterial -- it's a usability

Re: GC pros and cons

2009-06-25 Thread Michael Ash
On Thu, Jun 25, 2009 at 3:54 AM, Peter Dunihope...@nwlink.com wrote: In a GC system, the fact that an object hasn't been collected yet doesn't interfere with future allocations.  All it means is that the GC hasn't gotten around to collecting the object yet.  If and when a new object is

Re: icns to Icon\r

2009-06-25 Thread Michael Ash
On Thu, Jun 25, 2009 at 9:52 AM, Michael Hannataomaili...@gmail.com wrote: I forgot to mention that I would like to do this from the command-line in order to automate the process. I found a solution: someone suggested I use icnsConverter and that seems to generate an Icon\r. Have not tested it

Re: GC pros and cons

2009-06-25 Thread Michael Ash
On Thu, Jun 25, 2009 at 10:37 AM, Michael Ashmichael@gmail.com wrote: That may be the theory, Apple's ObjC collector does *not* trigger on allocation errors (at least not reliably or sufficiently, and as such it is possible to outrun the collector by creating a large number of objects in a

Re: GC pros and cons

2009-06-25 Thread Bill Bumgarner
On Jun 25, 2009, at 9:50 AM, Michael Ash wrote: Oh, forgot to mention, in case any Apple peoples are reading this and interested in it (although I imagine that any who care already know), this is filed as rdar://5563149 which is still open as of this writing. It'll be returned to you shortly

resizing table view programmatically

2009-06-25 Thread Daniel Child
I would like to resize a table view programmatically. I will be resizing based on the number of rows (which I know in advance), given a fixed row height which I set myself. I tried resizing the window's contentView and that did not work. I know that a window, a scroll view, and a clip view

Re: IKImageBrowserView setSelectionIndex not selecting

2009-06-25 Thread Richard Gutierrez
I did place this in the awakeFromNib... I also tried placing it in updateDatasource, addImagesWithPath, and addImagesWithPaths. All of the calls do not work. Here is my awakeFromNib code: - (void)awakeFromNib { images = [[NSMutableArray alloc] init]; importedImages = [[NSMutableArray

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 12:46 AM, Alexander Spohr wrote: Am 25.06.2009 um 00:46 schrieb Doug Scott: I have developed a small series of custom IBPlugin framework projects, two of which include other custom IBPlugin objects. Here is a quick overview of the hierarchy. - IBPlugin-A: A view with

Re: resizing table view programmatically

2009-06-25 Thread Keary Suska
On Jun 25, 2009, at 9:47 AM, Daniel Child wrote: I would like to resize a table view programmatically. I will be resizing based on the number of rows (which I know in advance), given a fixed row height which I set myself. I tried resizing the window's contentView and that did not work. I

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

2009-06-25 Thread Keary Suska
On Jun 25, 2009, at 8:31 AM, Rick Hoge wrote: All worked fine, except that, when the new dictionaries are added by clicking the add: button, the mutable array managed by the controller is replaced with a new array (rather than inserting the new dictionary in the original array). The new

Re: extending NSSavePanel, how to disable save button?

2009-06-25 Thread Mike Abdullah
I'm pretty certain there is no proper API for disabling the Save button. But the delegate methods will allow you to stop the button from taking effect (weird I know). I suggest you do an NSBeep() at the same time to at least give some feedback as to why the panel couldn't close. Mike.

Re: IBPlugin embedding question

2009-06-25 Thread Shawn Erickson
On Thu, Jun 25, 2009 at 9:35 AM, Doug Scottdougrsc...@comcast.net 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 found to be incredibly powerful and

Re: IBPlugin embedding question

2009-06-25 Thread Shawn Erickson
On Wed, Jun 24, 2009 at 3:46 PM, Doug Scottdougrsc...@comcast.net wrote: Question: How can I automate the maintenance of embedded IBPlugins. Xcode Version 3.1.3 Interface Builder Version 3.1.2 (677) I have developed a small series of custom IBPlugin framework projects, two of which include

Re: GC pros and cons

2009-06-25 Thread Peter Duniho
On Jun 25, 2009, at 7:37 AM, Michael Ash wrote: That may be the theory, Apple's ObjC collector does *not* trigger on allocation errors (at least not reliably or sufficiently, and as such it is possible to outrun the collector by creating a large number of objects in a tight loop. Well, as far

Re: IBPlugin embedding question

2009-06-25 Thread Doug Scott
On Jun 25, 2009, at 9:38 AM, Shawn Erickson wrote: On Wed, Jun 24, 2009 at 3:46 PM, Doug Scottdougrsc...@comcast.net wrote: Question: How can I automate the maintenance of embedded IBPlugins. Xcode Version 3.1.3 Interface Builder Version 3.1.2 (677) I have developed a small series of

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 Scottdougrsc...@comcast.net 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

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

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

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

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 x for key path x. It always occurs when I am trying to access a relationship

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

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

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

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

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

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

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:

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

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

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 Gutierrezricha...@modernpostcard.com wrote: I did place this in the awakeFromNib... I

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

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

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

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

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

Re: Ideas required on testing an application install

2009-06-25 Thread Michael Dautermann
On Thursday, June 25, 2009, at 11:04AM, Ramakrishna Vavilala vrk.li...@gmail.com 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

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

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: 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 Ammonpam...@apple.com 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

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

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

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

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

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 :

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

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

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

Re: GC pros and cons

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 11:39 AM, Peter Ammonpam...@apple.com 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,

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

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

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

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

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

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 )

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

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

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 Ammonpam...@apple.com 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

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

Re: Search in ABPeoplePickerView not working

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 2:58 AM, Nikhil Khandelwalnikhil_khandel...@persistent.co.in 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

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

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

Re: IBPlugin embedding question

2009-06-25 Thread Shawn Erickson
On Thu, Jun 25, 2009 at 11:33 AM, Doug Scottdougrsc...@comcast.net 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

Re: Programmatically Picking Elements

2009-06-25 Thread Kyle Sluder
On Thu, Jun 25, 2009 at 1:20 PM, Pierce Freemanpiercefreema...@comcast.net 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

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 Blountkeithblo...@yahoo.com 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

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

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

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

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

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,

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

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 puns...@mac.com 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

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

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

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?

  1   2   >