Re: UNIX signals

2008-12-18 Thread Jean-Daniel Dupas
Le 18 déc. 08 à 04:55, Michael Ash a écrit : On Wed, Dec 17, 2008 at 2:32 PM, Greg Parker wrote: On Dec 16, 2008, at 7:22 PM, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: Is there any Cocoa and/or Carbon interface to UNIX signals? Nope. It's pretty easy to s

Re: Validation of a Custom View NSToolbarItem

2008-12-18 Thread Ashley Clark
On Dec 17, 2008, at 8:20 AM, Carmen Cerino Jr. wrote: I understand I need to have a NSToolbarItem subclass and override its validate method, but who is responsible for calling it? Will NSToolbar call it during its validation routine or do I need to come up with my own validation routine? NSToo

Re: Validation of a Custom View NSToolbarItem

2008-12-18 Thread Keith Blount
> I understand I need to have a NSToolbarItem subclass and override its > validate method, but who is responsible for calling it? Will NSToolbar > call it during its validation routine or do I need to come up with my > own validation routine? As Ashley says, NSToolbar will call validate on the too

NSURL creation problem with colon: a partial workaround

2008-12-18 Thread Jérome Laurens
Hi list, I have a relative path with colons "file:test", and I would like to create a NSURL relative to a given base URL "file://localhost/root/". This does not work as expected. Consider the simple URL creation method NSURL * url1 = [NSURL fileURLWithPath:@"/root/file:test"]; The url is pr

NSToolbar Error

2008-12-18 Thread Carmen Cerino Jr.
Can anyone explain where I should be looking for the cause of this issue? I pulled my toolbar code from another project that is working completely fine. 2008-12-18 09:19:02.485 MyProject [36461:10b] *** Assertion failure in -[NSToolbar _forceMoveItemFromIndex:toIndex:], /SourceCache/AppKit/AppKit-

Re: NSToolbar Error

2008-12-18 Thread Carmen Cerino Jr.
Allow me to add some more context to this error. It occurs during customization of the toolbar when I try to move a item from one location on the toolbar to another. The odd thing is if I drag out the default toolbar from the customization palette and repeat the same process, this error does not oc

Using a NSCollectionView in a table cell.

2008-12-18 Thread Eric Gorr
I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. The outline view will have only a single column and look like: > Collapsible Row 1 NSCollectionView 1 > Collapsible Row 2 NSCollectionView 2 and so on. What I am uncertain about is just how to

Re: NSURL creation problem with colon: a partial workaround

2008-12-18 Thread Mike Abdullah
According to the RFC specs referenced by the NSURL documentation, the colon is a reserved character. You should percent escape it before using it as a relative path. I believe that would be: NSURL * url2 = [NSURL fileURLWithPath:@"/root/"]; NSURL * url3 = [NSURL URLWithString:@"file%3Atest" r

[Q] What type the Final Cut Pro expect when a file is drag&dropped to its project?

2008-12-18 Thread JongAm Park
Hello. I wrote some codes which will enable drag&drop from my application to FCP's project. Before implementing it, I tried dragging and dropping a file from a Finder to an FCP's project which was opened with the FCP. After confirming that the FCP supports drag&drop from the Finder, I started

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Corbin Dunn
On Dec 18, 2008, at 7:28 AM, Eric Gorr wrote: I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. The outline view will have only a single column and look like: > Collapsible Row 1 NSCollectionView 1 > Collapsible Row 2 NSCollectionView 2 and so o

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Randall Meadows
On Dec 18, 2008, at 9:52 AM, Corbin Dunn wrote: On Dec 18, 2008, at 7:28 AM, Eric Gorr wrote: I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. [snip] You will have more problems and trouble attempting to get an NSView inside of a cell. I suggest subclassin

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Eric Gorr
On Dec 18, 2008, at 11:52 AM, Corbin Dunn wrote: On Dec 18, 2008, at 7:28 AM, Eric Gorr wrote: I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. The outline view will have only a single column and look like: Collapsible Row 1 NSCollectionView 1 Colla

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Eric Gorr
On Dec 18, 2008, at 11:59 AM, Randall Meadows wrote: On Dec 18, 2008, at 9:52 AM, Corbin Dunn wrote: On Dec 18, 2008, at 7:28 AM, Eric Gorr wrote: I need to be able to use a NSCollectionView inside of a cell for a NSOutlineView. [snip] You will have more problems and trouble attempting to

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Corbin Dunn
Thanks for the advice. Searching more through the archives, I did find: http://www.joar.com/code/body.html which seems to do what I want and subclasses a NSCell. Could you provide some information on what problems I will run into going the route suggested by joar? One problem is navig

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Randall Meadows
On Dec 18, 2008, at 10:06 AM, Eric Gorr wrote: On Dec 18, 2008, at 11:52 AM, Corbin Dunn wrote: On Dec 18, 2008, at 7:28 AM, Eric Gorr wrote: You will have more problems and trouble attempting to get an NSView inside of a cell. I suggest subclassing NSTextFieldCell. Please do log a bug re

Re: More - Safari Download Security Alerts

2008-12-18 Thread Dave
Hi, I've been digging and delving and have found out why this is flakey! When I Drag in the folder in PM, it sets the privileges to the same as the local copy. I then override then in the content pane, so then become owner: root, group: admin. This seems to work ok when you press "Apply Re

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Eric Gorr
On Dec 18, 2008, at 12:13 PM, Corbin Dunn wrote: Thanks for the advice. Searching more through the archives, I did find: http://www.joar.com/code/body.html which seems to do what I want and subclasses a NSCell. Could you provide some information on what problems I will run into going t

Performance of calculation on float point numbe rs in a array • NSNumber in NSArray, or classic C ar ray?

2008-12-18 Thread Stanislas Krásnaya
Hello everyone! I've got a basic question. I'm sure this is a very vast debate, since I've found several answers on the subject, but I'm not satisfied. I've read that, since we're programming in Objective-C, it's more elegant and reliable to use an NSArray stuffed with NSNumber instead o

Receiving controlTextDidChange: from change in bound value?

2008-12-18 Thread Chad Bailey
Hello list, I have an NSTextField that has its Value attribute bound to an NSString object. When I update the NSString object from another place in my code, the value of my NSTextField updates appropriately (that's Bindings for you). However, I'm trying to call sizeToFit on that NSTextFie

Error with malloc and NSFileWrapper

2008-12-18 Thread Guillaume Campagna
Ok, I've search everywhere! And I see no reason of that error! I'm using a NSDirectoryEnumerator to add all the content of a folder to some array... I'm filtering these files (I don't want certains types of files). One of these file types is symbolic link (alias). So I'm using NSFileWrapper

Re: Using a NSCollectionView in a table cell.

2008-12-18 Thread Kevin Gessner
An alternative route: you could use an NSCollectionView in place of your NSOutlineView, and populate it with more NSCollectionViews. Then you'd be imitating the outline view's behavior (essentially just collapsing), which might be simpler than trying to mimic NSView with NSTextFieldCell.

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Rob Rix
Do the simplest thing that could possibly work. In some cases, like if you need to be calling -performSelector:withObject: with each of these things, that might be the NSArray. In your case, it sounds to me like it’s the C array of floats. Just my two cents. Rob On 17-Dec-08, at 3:04 PM,

-[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Jonathan del Strother
Heya, I ran into a memory leak recently that I finally managed to track down to NSURLConnection retaining its delegate. It appears that cancelling an NSURLConnection won't actually release its delegate until the next time around the run loop. Normally this is fine, but I was running on a separate

Re: Performance of calculation on float point numbers in a array € NSNumber in NSArray, or classic C array?

2008-12-18 Thread Scott Ribe
Depends... How likely are you to need to resize arrays? How often do you need to allocate & free them? Both of these are easier with NSArray & the framework's reference-counting memory management. On the other hand, for simple arrays of floats, packaging everything up into NSNumbers or NSValues is

Re: Thread ID in crash log

2008-12-18 Thread Scott Ribe
> But there's still a difference, right? And when called or passed through alot, > that small difference can become really big. ... > The fwrite was just an example. We actually do our debugging through memory > first (ofcourse, there's still locking) and then another debugger thread does > the wri

Re: -[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Keary Suska
On Dec 18, 2008, at 10:57 AM, Jonathan del Strother wrote: Heya, I ran into a memory leak recently that I finally managed to track down to NSURLConnection retaining its delegate. It appears that cancelling an NSURLConnection won't actually release its delegate until the next time around the ru

Re: Age Old Question: How Do You Set __MyCompanyName__

2008-12-18 Thread Quincey Morris
On Dec 18, 2008, at 09:47, Andy Lee wrote: * There should be an Xcode-wide default setting for the value that is used for __MyCompanyName__. * You should be able to tell what that default setting is by looking in Xcode's preferences, because that's the first place you're going to look --

Re: -[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Stephen J. Butler
Actually, this works for me on 10.5.6, with XCode 3.1.1. The assert doesn't trigger. I wonder... NSThread posts an NSThreadWillExitNotification with the NSThread instance as the object, which is retaining your ConnectionFactory. Is it possible that since you have no run loops the notification gets

a few Core Data questions: Predicates and document based app

2008-12-18 Thread Michael B Johnson
Getting back into Core Data over the holidays, and I've got a few questions. First, the easy one: I have an entity (let's called it MyThing) that has an optional parentThing relationship. I'm interested in MyThings that either don't have their parent set, ("parentThing == NIL") or have t

Re: Error with malloc and NSFileWrapper

2008-12-18 Thread Quincey Morris
On Dec 17, 2008, at 17:22, Guillaume Campagna wrote: I'm using a NSDirectoryEnumerator to add all the content of a folder to some array... I'm filtering these files (I don't want certains types of files). One of these file types is symbolic link (alias). So I'm using NSFileWrapper to check

Re: Age Old Question: How Do You Set __MyCompanyName__

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 1:39 PM, Quincey Morris wrote: > On Dec 18, 2008, at 09:47, Andy Lee wrote: > ... >> A developer shouldn't have to search >> list archives to find out that the information is in a paragraph of the >> Xcode 3.1 release notes. > > Amen. It looks like you accidentally cross

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Boyd Collier
Stanislas, I don't have anything useful to add to what others have already said about the merits of classic C arrays vs NSArray. However, since you mentioned wanting to calculate variance and other stats, if you aren't already familiar with the subtleties of algorithms for statistical ca

Enabling add button

2008-12-18 Thread Andre Masse
Hi, I'm using a classic master/detail view. The detail view has a bunch of fields, a table view and a button (with a shortcut) for adding rows to it. The table view is bound to an NSArrayController. Now, I want to enable the button only when the table view (in the detail view) has the foc

Re: UNIX signals

2008-12-18 Thread Michael Ash
On Thu, Dec 18, 2008 at 3:30 AM, Jean-Daniel Dupas wrote: > > Le 18 déc. 08 à 04:55, Michael Ash a écrit : > >> On Wed, Dec 17, 2008 at 2:32 PM, Greg Parker wrote: >>> >>> On Dec 16, 2008, at 7:22 PM, Michael Ash wrote: On Tue, Dec 16, 2008 at 8:02 PM, Chris Idou wrote: > > Is

Re: -[NSURLConnection cancel] doesn't release its delegate?

2008-12-18 Thread Michael Ash
On Thu, Dec 18, 2008 at 1:43 PM, Stephen J. Butler wrote: > I wonder... NSThread posts an NSThreadWillExitNotification with the > NSThread instance as the object, which is retaining your > ConnectionFactory. Is it possible that since you have no run loops the > notification gets stuck until some r

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Quincey Morris
On Dec 17, 2008, at 12:04, Stanislas Krásnaya wrote: I've read that, since we're programming in Objective-C, it's more elegant and reliable to use an NSArray stuffed with NSNumber instead of a classic C array. But what I want to do, it's performing classic calculation, like mean value, vari

Re: garbage collection memory leak

2008-12-18 Thread Bill Bumgarner
On Dec 17, 2008, at 3:16 PM, Michael Link wrote: I'm trying to track down a memory leak even though I'm using garbage collection. I was curious what the "rc:" field means when using "info gc-roots" in gdb? It doesn't seem to correlate to the Retain Count when inspecting an address in Instrum

Re: a few Core Data questions: Predicates and document based app

2008-12-18 Thread mmalc Crawford
On Dec 18, 2008, at 10:47 AM, Michael B Johnson wrote: I have an entity (let's called it MyThing) that has an optional parentThing relationship. I'm interested in MyThings that either don't have their parent set, ("parentThing == NIL") or have their parent set to themselves ("parentThing

[Q] availableTypeFromArray returns NXFileContentsPboardType instead of NSFileContentsPboardType

2008-12-18 Thread JongAm Park
Hello, all. I'm struggling to enable drag&dropping to Final Cut Pro's project window from my application. While I was trying to figure out how to, I found this strange thing. NSArray *supportedTypes = [NSArray arrayWithObject:NSFileContentsPboardType]; NSString *matchingType = [pboard avai

Re: Enabling add button

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 1:57 PM, Andre Masse wrote: > I'm using a classic master/detail view. The detail view has a bunch of > fields, a table view and a button (with a shortcut) for adding rows to it. > The table view is bound to an NSArrayController. Now, I want to enable the > button only when

Re: Age Old Question: How Do You Set __MyCompanyName__

2008-12-18 Thread Quincey Morris
On Dec 18, 2008, at 10:56, I. Savant wrote: It looks like you accidentally cross-posted between lists (this was on xcode-users and really still belongs there), but I agree with every single point Andy made. I'm off to read the thread on xcode-users because it looks like there's been a lively de

Re: a few Core Data questions: Predicates and document based app

2008-12-18 Thread Michael B Johnson
On Dec 18, 2008, at 11:04 AM, mmalc Crawford wrote: On Dec 18, 2008, at 10:47 AM, Michael B Johnson wrote: I have an entity (let's called it MyThing) that has an optional parentThing relationship. I'm interested in MyThings that either don't have their parent set, ("parentThing == NIL")

Preventing Automatic Gzip Decompression with NSURLConnection?

2008-12-18 Thread Andrew Lindesay
Hello; I have figured out that NSURLConnection is decompressing data when the header "Content-Encoding" is equal to "gzip". Fair enough and probably quite handy, but I would like to stop it doing this as I would like to show a progress bar for a download and if the data is being automati

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classic C array?

2008-12-18 Thread I. Savant
Stanislas: > I've read that, since we're programming in Objective-C, it's more elegant > and reliable to use an NSArray stuffed with NSNumber instead of a classic C > array. But what I want to do, it's performing classic calculation, like mean > value, variance... etc, on floating point numbers. T

Re: Age Old Question: How Do You Set __MyCompanyName__

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 2:12 PM, Quincey Morris wrote: > The debate has been lively, but not heated (for a change). Indeed - I encourage anyone not subscribed directly to the xcode-users list to check out the archives (look for the thread of this same subject). Some very salient UI (I = "inter

does this crash make sense to anyone?

2008-12-18 Thread slasktrattena...@gmail.com
Hi, my app keeps annoying me by crashing at launch every now and then. What's weird about the backtrace is that it tells me I have called a CLASS method named setFrame:. The class varies: in this case it says NSClipView, sometimes is says NSAttributedString, or NSObject, or whatever. Of course, I

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Stanislas Krásnaya
Thank you, Rob, Rich Scott, and Quincey for these answers. I'm new to the programming world, so I think the first thing to do is to figure out exactly what I want and then what I need. If I have to optimise something later, I will do it. Since it is about an array of a measurement points o

Re: does this crash make sense to anyone?

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 2:33 PM, slasktrattena...@gmail.com wrote: > my app keeps annoying me by crashing at launch every now and then. > What's weird about the backtrace is that it tells me I have called a > CLASS method named setFrame:. The class varies This is a CLASSic sign of a memory man

Re: does this crash make sense to anyone?

2008-12-18 Thread Shawn Erickson
On Thu, Dec 18, 2008 at 11:33 AM, slasktrattena...@gmail.com wrote: > Hi, > > my app keeps annoying me by crashing at launch every now and then. > What's weird about the backtrace is that it tells me I have called a > CLASS method named setFrame:. The class varies: in this case it says > NSClipVie

Re: a few Core Data questions: Predicates and document based app

2008-12-18 Thread Quincey Morris
On Dec 18, 2008, at 11:18, Michael B Johnson wrote: I guess that's my question, though. Why is that a bad thing, to have three relationships from on entity all pointing to another entity, which is only pointing to the other entity once? It's not a *bad* thing, but the model editor won't le

Re: does this crash make sense to anyone?

2008-12-18 Thread Shawn Erickson
On Thu, Dec 18, 2008 at 11:45 AM, Shawn Erickson wrote: > On Thu, Dec 18, 2008 at 11:33 AM, slasktrattena...@gmail.com > wrote: >> Hi, >> >> my app keeps annoying me by crashing at launch every now and then. >> What's weird about the backtrace is that it tells me I have called a >> CLASS method n

Re: Enabling add button

2008-12-18 Thread Andre Masse
Thanks for your reply. Why do you need the button's enabled state to depend on which control has focus? This is *not* usual Mac OS X UI behavior and is in fact counterintuitive. As a user, I would never think to click inside a table to enable an associated button. I would assume that - for reaso

Re: Preventing Automatic Gzip Decompression with NSURLConnection?

2008-12-18 Thread Knut Lorenzen
Am 18.12.2008 um 20:22 schrieb Andrew Lindesay: I have figured out that NSURLConnection is decompressing data when the header "Content-Encoding" is equal to "gzip". Fair enough and probably quite handy, but I would like to stop it doing this as I would like to show a progress bar for a do

Implementing a record counter (record n of records)

2008-12-18 Thread Jon C. Munson II
Namaste! I'm attempting to implement a simple record counter: Record n of records n = current record number  records = total number of records I've looked at the Events Manager sample and borrowed the text field from there which has a representation of "# out #." It uses the Value w

Question Regarding the Memory Address of Objects

2008-12-18 Thread Carter R. Harrison
Ok, hopefully this is an easy one. I have a Nib file setup with an NSView and some NSButton's as subviews of that view. I have IBOutlets for each of the NSButton's in my NSView subclass. In the awakeFromNib: method of my NSView subclass I do the following: - (void)awakeFromNib {

Re: Preventing Automatic Gzip Decompression with NSURLConnection?

2008-12-18 Thread Knut Lorenzen
Am 18.12.2008 um 20:53 schrieb Knut Lorenzen: Setting your MIMEType to @"gzip" and returning NO should to the trick. Ouch, this should probably be @"application/gzip" :) Cheers, Knut ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Ple

Re: Enabling add button

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 2:52 PM, Andre Masse wrote: > Let me explain a bit more. This is an in house application for only 3 people > (me, my wife and my son) that was originally built with 4th Dimension. I > agree that this is not the expected behavior for mac users but it is for > mine, as this

Re: Enabling add button

2008-12-18 Thread Andre Masse
On Dec 18, 2008, at 15:10, I. Savant wrote: It's almost the classic "more security == less convenience" scenario. In this case "security" refers to that of your data integrity. :-) Exactly :-) Perhaps all your tables should use a datasource (and delegate). This way your add button can

Re: Enabling add button

2008-12-18 Thread Kyle Sluder
On Thu, Dec 18, 2008 at 2:52 PM, Andre Masse wrote: > 1- user select a row in the master table view, > 2- press the button's shortcut (intentionally or not) > 3- a row is added to the detail's table view but since it does not have the > focus, the row selection's is grayed and its not that evident

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread Quincey Morris
On Dec 18, 2008, at 11:57, Carter R. Harrison wrote: I have a Nib file setup with an NSView and some NSButton's as subviews of that view. I have IBOutlets for each of the NSButton's in my NSView subclass. In the awakeFromNib: method of my NSView subclass I do the following: - (void)awakeF

Re: Enabling add button

2008-12-18 Thread Andre Masse
On Dec 18, 2008, at 15:32, Kyle Sluder wrote: If you place the control correctly (using a small square button with the standard plus symbol, located directly underneath the table view it modifies and flush with its left edge) then there will be no confusion. Clicking the button should transfer

Re: Implementing a record counter (record n of records)

2008-12-18 Thread Kevin Gessner
On Dec 18, 2008, at 2:50 PM, Jon C. Munson II wrote: Namaste! I'm attempting to implement a simple record counter: Record n of records n = current record number records = total number of records I've looked at the Events Manager sample and borrowed the text field from there which

Re: Enabling add button

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 3:27 PM, Andre Masse wrote: > BTY, when does NSArrayController canInsert: returns NO? From the docs: "Returns a Boolean value that indicates whether an object can be inserted into the receiver's content collection." I've only ever seen it return NO when the content co

Re: Enabling add button

2008-12-18 Thread I. Savant
On Thu, Dec 18, 2008 at 3:32 PM, Kyle Sluder wrote: > If you place the control correctly (using a small square button with > the standard plus symbol, located directly underneath the table view > it modifies and flush with its left edge) then there will be no > confusion. Clicking the button sho

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread David Duncan
On Dec 18, 2008, at 11:57 AM, Carter R. Harrison wrote: [dict setValue:@"button1" forKey:[NSString stringWithFormat:@"%x", &button1]]; // "button1" is one of my IBOutlets. NSString *value = [dict valueForKey:[NSString stringWithFormat:@"%x", &sender]]; It seems like the memory address of

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread Carter R. Harrison
On Dec 18, 2008, at 3:44 PM, David Duncan wrote: On Dec 18, 2008, at 11:57 AM, Carter R. Harrison wrote: [dict setValue:@"button1" forKey:[NSString stringWithFormat:@"%x", &button1]]; // "button1" is one of my IBOutlets. NSString *value = [dict valueForKey:[NSString stringWithFormat:@"%

RE: Implementing a record counter (record n of records)

2008-12-18 Thread Jon C. Munson II
Thanks alot, that worked out well as far as a single value goes. :) How does one create a value transformer for multiple values? Do you need to write a transformer for each value in the chain, etc.? Thanks again! Peace, Love, and Light,  / s/ Jon C. Munson II -Original Message- From:

Re: Validation of a Custom View NSToolbarItem

2008-12-18 Thread Carmen Cerino Jr.
I apologize if I cam of snarky in my last email. I guess I may still confused on how the validation process works. My impression from the Toolbar Programming guide was that if you are dealing with image based items you want to implement the validateToolbarItem in your target. However if you are de

Re: NSToolbar Error

2008-12-18 Thread Carmen Cerino Jr.
This issue has been resolved. Unfortunately, I can't think of an easy way to describe the issue without providing some deep contextual details of some of my code. However it is not related to the issue I am having with validation of a toolbar item with a custom view. On Thu, Dec 18, 2008 at 9:42 A

Re: [Q] availableTypeFromArray returns NXFileContentsPboardType instead of NSFileContentsPboardType

2008-12-18 Thread Michael Ash
On Thu, Dec 18, 2008 at 2:09 PM, JongAm Park wrote: > Hello, all. > > I'm struggling to enable drag&dropping to Final Cut Pro's project window > from my application. > > While I was trying to figure out how to, I found this strange thing. > > NSArray *supportedTypes = [NSArray > arrayWithObject:NS

Re: Question Regarding the Memory Address of Objects

2008-12-18 Thread Michael Ash
On Thu, Dec 18, 2008 at 3:53 PM, Carter R. Harrison wrote: > Once again you have saved me from pulling my hair out. Thank you once again > for your assistance. For the rest of the folks on the thread the solution > was to remove the "&" from the front of all my pointers. I'd suggest that your b

Debugging a Plugin

2008-12-18 Thread Bridger Maxwell
Hey, I am setting up my application to work with plugins. I can see how I can get a plugin to build, and how to load/use it from the application, but I can't figure out how I would debug the plugin. Is it possible to configure Xcode to launch the application, tell it to use that plugin (some sort o

Re: Debugging a Plugin

2008-12-18 Thread Nick Zitzmann
On Dec 18, 2008, at 3:56 PM, Bridger Maxwell wrote: Is it possible to configure Xcode to launch the application, tell it to use that plugin (some sort of startup parameter?), and then debug the plugin's code even though it is the application running it? It's possible. Perhaps there is an

Re: Enabling add button

2008-12-18 Thread Andre Masse
On Dec 18, 2008, at 15:42, I. Savant wrote: I've only ever seen it return NO when the content collection isn't present. In other words, if your Widget Detail controller's content array (or set) is bound to the Master's selection.widgets and a valid Master object is selected, it would return YES

[Q] How to let the pasteboard know a file type?

2008-12-18 Thread JongAm Park
Hi, Thanks to a utility program, called DragPeeker X, I found out some clue why the FCP treated dragged file as a file with unknown type. When I dragged the same file from the Finder to the FCP, it shows : Number of Items: 1 1. Item Reference: 19884c10 Item Bounds (tlbr): { 86, 1,

NSTableView cross-coupling rows when editing strings?

2008-12-18 Thread Graham Cox
I have a weird problem with NSTableView that I'm having trouble getting to the bottom of. The situation is a little complicated... I have an array of objects. The table shows the properties of these objects, one object per row, one property per column, as usual. One of the properties of the

Re: Enabling add button

2008-12-18 Thread Andre Masse
On Dec 18, 2008, at 15:43, I. Savant wrote: The issue Andre mentioned is that the app is mostly keyboard-driven (and the key combo fires the button, which he fears can be triggered inadvertently). This means it doesn't matter where the button is - the key combo can still trigger the action wit

[ANN] Objective-XML 4.3

2008-12-18 Thread Marcel Weiher
Just a quick note that I have just released version 4.3 of Objective- XML, an efficient and convenient XML framework for Cocoa (Touch): http://www.metaobject.com/downloads/Objective-C/Objective-XML-4.3.tgz From the Readme: Objective-XML is an XML processing framework for Objective-C.

Return key for sheet button - different behaviour on 10.4

2008-12-18 Thread Andy Bettis
Hi, In my app I have several sheets that have an OK button linked to the return key - the classic default button behaviour. Some of them are used for multiple entry so after pressing OK the fields are cleared but the sheet remains open for the next entry. All works fine in development and

Re: NSTableView cross-coupling rows when editing strings?

2008-12-18 Thread Corbin Dunn
On Dec 18, 2008, at 3:28 PM, Graham Cox wrote: The five kinds of representedObject are a) a custom class of my own, b) a NSColor, c) a NSString, d) a NSValue and d) an NSImage. Corresponding to these I set the dataCell to a,d) NSImageCell, b) a custom cell type to handle colours, c,d) a NS

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Rich Collyer
"bit stupid" - no, but.. The resulting assembly from: NSArray testArray = [NSArray alloc] init]; // TODO: fill array with a bunch of NSNumbers (floats) int i; float bigNum; for (i = 0; i < [testArray count]; ++i) { bigNum *= [testArray objectAtIndex:i]; } Will be a bit slower than the

subclassing NSApplication run

2008-12-18 Thread Chinh Nguyen
I know everyone is going to say don't do this but I really need to do this. I need to duplicate the behavior of NSApplication run's event handling. What the docs say about subclassing run is "This a critical and complex task, however, that you should only attempt with good reason." with n

Re: proper way to release a static NSMutableDictionary?

2008-12-18 Thread Dale Merrick
As someone else suggested why not just use [lookup removeAllObjects] or perhaps I am missing a part of the bigger picture for the project you're working on. Dale Merrick On Dec 15, 2008, at 4:54 PM, John Michael Zorko wrote: Hello, all ... Imagine this: static NSMutableDictionary *loo

NSAppleScript returns wrong result on multiple Safari windows, applescript editor works

2008-12-18 Thread Jot Kali
Hello, I'm trying to get the URL of whatever is the front window / selected tab in Safari. But for multiple windows it does not work. Say the user opens a window in Safari and navigates to apple.com, opens a tab and goes to nytimes.com, opens a NEW window and goes to arstechnica.com If

Problem when userSpaceScaleFactor is not 1.0

2008-12-18 Thread Gary Crandall
I have a situation that I have been unable to solve for several weeks. Inside a view, I am drawing a "box" that shows a "drop down" effect, similar to a drawer. So in the "closed" state it is a narrow rectangle, and when it "opens," it expands into a larger rectangle, with a "drop-down" effect.

Newbie scroll view problem

2008-12-18 Thread Andy Bettis
Hi, In my app I have an NSScrollView that contains a simple NSView in which I add other NSView subclass objects. All works well until the window (and hence the scroller) is resized - making it smaller is OK but if it is made bigger than the original (IB) size my added views migrate down t

Re: NSTableView cross-coupling rows when editing strings?

2008-12-18 Thread Graham Cox
On 19 Dec 2008, at 10:50 am, Corbin Dunn wrote: On Dec 18, 2008, at 3:28 PM, Graham Cox wrote: The five kinds of representedObject are a) a custom class of my own, b) a NSColor, c) a NSString, d) a NSValue and d) an NSImage. Corresponding to these I set the dataCell to a,d) NSImageCell, b

NSData downloaded over socket is bigger than it should be...

2008-12-18 Thread Jean-Nicolas Jolivet
Well this is going to be a bit vague since my situation is a bit specific but basically I am downloading data using AsyncSocket... then I'm saving it directly to the HD... However in like 80% of the cases, the resulting data on disk is slightly bigger (usually around 12 or 13bytes) than it s

CLLocationDistance contents?

2008-12-18 Thread Jacob Rhoden
Hi Guys, I am doing the following to find a distance between two locations: CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude: venue.latitude longitude:venue.longditude]; CLLocationDistance distance = [venueLocation getDistanceFrom:currentLocation]; Is distance in metres/miles/

Re: NSTableView cross-coupling rows when editing strings?

2008-12-18 Thread Corbin Dunn
On Dec 18, 2008, at 3:59 PM, Graham Cox wrote: On 19 Dec 2008, at 10:50 am, Corbin Dunn wrote: On Dec 18, 2008, at 3:28 PM, Graham Cox wrote: The five kinds of representedObject are a) a custom class of my own, b) a NSColor, c) a NSString, d) a NSValue and d) an NSImage. Corresponding

Re: Newbie scroll view problem

2008-12-18 Thread Graham Cox
On 19 Dec 2008, at 10:57 am, Andy Bettis wrote: In my app I have an NSScrollView that contains a simple NSView in which I add other NSView subclass objects. All works well until the window (and hence the scroller) is resized - making it smaller is OK but if it is made bigger than the origi

Re: CLLocationDistance contents?

2008-12-18 Thread David Duncan
On Dec 18, 2008, at 4:14 PM, Jacob Rhoden wrote: Hi Guys, I am doing the following to find a distance between two locations: CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude: venue.latitude longitude:venue.longditude]; CLLocationDistance distance = [venueLocation getDistan

NSTrackingAreas, mouse entered/exited not firing

2008-12-18 Thread Randall Meadows
Yet another simple operation I've apparently managed to miss something with... I have an NSTableView subclass (actually, a subclass of BGHUDTableView), that contains a bunch of custom cells. For a couple types of those cells, I want to switch the cursor while it's in that cell. I'm foll

download security hanging app

2008-12-18 Thread Robert Clair
I have an app that puts up a registration window if it is not registered when it starts. (The usual 30 day buy later / by now / enter license kind of thing.) The app is distributed by downloading a dmg. I put the window up with: [NSApp runModalForWindow: licensePanel]; which is called from - (

Re: CLLocationDistance contents?

2008-12-18 Thread Jacob Rhoden
CLLocation* venueLocation = [[CLLocation alloc] initWithLatitude: venue.latitude longitude:venue.longditude]; CLLocationDistance distance = [venueLocation getDistanceFrom:currentLocation]; Is distance in metres/miles/km? How do I display it on screen in a platform independent way? On 19/12/

Re: CLLocationDistance contents?

2008-12-18 Thread Roland King
try searching for 'Full-Text'. But the documentation is correct either way. A CLLocationDistance itself isn't necessarily in meters, it's just a double. The functions which return it, like getDistanceFrom: and the altitude property tell you what it means and tells you that it's in meters.

Re: Performance of calculation on float point numbers in a array • NSNumber in NSArray, or classi c C array?

2008-12-18 Thread Martin Wierschin
If I have to optimise something later, I will do it. You can take advantage of Objective-C's categories to make future optimization an easier task. For example, rather than coding: for( unsigned ii = 0; ii < count; ii++ ) { sum += [[array objectAtIndex:ii] floatValue]

Re: download security hanging app

2008-12-18 Thread Geoff Beier
On Thu, Dec 18, 2008 at 8:05 PM, Robert Clair wrote: > [NSApp runModalForWindow: licensePanel]; > > which is called from > > - (void)applicationDidFinishLaunching:(NSNotification *)notification > > The problem is (not sure when this started, it's just been reported) > that when it is started the f

Re: download security hanging app

2008-12-18 Thread Andrew Farmer
On 18 Dec 08, at 19:27, Geoff Beier wrote: On Thu, Dec 18, 2008 at 8:05 PM, Robert Clair wrote: [NSApp runModalForWindow: licensePanel]; which is called from - (void)applicationDidFinishLaunching:(NSNotification *)notification The problem is (not sure when this started, it's just been repor

NSAppleScript returns wrong result on multiple Safari windows, applescript editor works

2008-12-18 Thread Craig Williams
From: Jot Kali Date: December 18, 2008 2:54:30 PM MST To: Cocoa-dev@lists.apple.com Subject: NSAppleScript returns wrong result on multiple Safari windows, applescript editor works Hello, I'm trying to get the URL of whatever is the front window / selected tab in Safari. But for multipl

  1   2   >