Re: NSComboBoxCell subclass pointers?

2016-11-22 Thread Robert Monaghan
Hi James, Very clever way of getting the boundaries of each cell! I was wondering if this was possible. I’ll take a shot at this and how far I get. Thanks! bob. > On Nov 21, 2016, at 5:46 PM, James Walker <jam...@frameforge3d.com> wrote: > > On 11/20/2016 8:15 PM, Robert Monag

NSComboBoxCell subclass pointers?

2016-11-20 Thread Robert Monaghan
Hi Everyone! This one has me stumped.. I have been working on a custom UI for my Cocoa application. By looking around the internet, I have managed to learn how to subclass a large number of UI objects on MacOSX. In many cases I could make the appearance work the way I want. The last UI

Re: disabling Apple Crash Reporter

2015-03-09 Thread Robert Monaghan
Hi Torsten, This is of interest to me, as well. I haven't had a chance to look into it, but I will over the next few days. Bob Sent from my iPhone On Mar 9, 2015, at 15:54, Torsten Curdt tcu...@vafer.org wrote: I could not find the prefs app

Re: KVO, which thread?

2013-02-04 Thread Robert Monaghan
Hi, Todd, Set a breakpoint and see which thread it stops on. (It is probably not the main thread. But you will find out for certain with the breakpoint.) Bob Sent from my iPhone On Feb 4, 2013, at 22:44, Todd Heberlein todd_heberl...@mac.com wrote: I have an NSInvocationOperation, anOp,

NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Robert Monaghan
Hi Everyone, I have just run head long into an issue with NSMutableData and existing buffers. I have the following code: UInt8 *sourcebytes = [clImgEngine srcBuffer]; [self setData:[NSMutableData dataWithBytesNoCopy:sourcebytes

Re: NSMutableData and Pinned Memory buffers..

2012-12-13 Thread Robert Monaghan
. // // GT_NSMutableData.h // // Created by Robert Monaghan on 12/13/12. // Copyright (c) 2012 Glue Tools LLC. All rights reserved. // #import Foundation/Foundation.h @interface GT_NSMutableData : NSMutableData { void *_gt_buffer; NSUInteger _gt_length; BOOL

Re: cocoabuilder closed?

2012-08-02 Thread Robert Monaghan
Hi, I just took a look. It seems to have a fairly current bunch of email from today. bob. On Jul 10, 2012, at 8:47 PM, Andy Lee ag...@mac.com wrote: I can get to the site but it doesn't seem to have been updated since June 25. --Andy On Jul 10, 2012, at 2:35 PM, Richard Altenburg

Re: One more try - NSCollectionView multi-selection problem..

2012-07-10 Thread Robert Monaghan
. they toggle the clicked item. --Graham On 09/07/2012, at 5:34 PM, Robert Monaghan wrote: Hi Everyone, In a previous posting, I had a problem with NSCollectionView not selecting a range of objects, when shift-selecting items. For example, if I were to click on object 3 and then shift

One more try - NSCollectionView multi-selection problem..

2012-07-09 Thread Robert Monaghan
Hi Everyone, In a previous posting, I had a problem with NSCollectionView not selecting a range of objects, when shift-selecting items. For example, if I were to click on object 3 and then shift-click on object 5, I would expect a range of 3,4,5 to be highlighted. Instead only 3 and 5 are

Refreshing an NSTableView with some columns using bindings, others not..

2012-06-14 Thread Robert Monaghan
Hi Everyone, I have a reasonably mixed NSTableView object.. I have some columns bound to my NSArrayController, which drives an NSCell with a Checkbox. I have other Columns which are driven by the traditional delegate calls, so that I can add some logic to change the text color, depending upon

Re: Xcode - An Apple Embarrassment

2012-03-01 Thread Robert Monaghan
Hi Wade, Many of Apple's other products are pretty solid. Its a shame that XCode 4 is pretty unstable. XCode 3.2.6 -might- crash once every 2 to 3 months, Xcode 4.2 -will- crash about once an hour. I am not even interested in trying Xcode 4.3. This reminds me of how bad Microsoft Office used

NSCollectionView mouseDown/drag is really slow.

2012-02-07 Thread Robert Monaghan
Hi Everyone, I have just read all of the posts that I can find about the NSCollectionView and selecting an item (or items) for a drag operation. As others have pointed out, the selection takes about 1 second for a drag operation to be processed. This is a real sore spot when using the

Re: NSCollectionView mouseDown/drag is really slow.

2012-02-07 Thread Robert Monaghan
Hi Lee Ann, Thanks for the info.. I was going to ask you if you had done any more digging. Heheh, my users are mostly using Lion, too. I guess more bug reports with Apple is the way to go on this. bob. On Feb 7, 2012, at 7:52 PM, Lee Ann Rucker wrote: On Feb 7, 2012, at 7:47 AM, Robert

NSCollectionView and selecting a range?

2012-01-20 Thread Robert Monaghan
Hi Everyone, This has been asked before by another Cocoa-dev follower, but there wasn't an answer... I have an NSCollectionView where I want to be able to Shift-click a range of Icons. Strangely, I can Command-click a range of individual icons, but a shift-click of a range will not work. What

Giving NSProgressIndicator a new look?

2012-01-17 Thread Robert Monaghan
Hi Everyone.. Can someone point me to a blog or webpage that describes how to give an existing NSControl a face lift? I want to change the baby blue appearance of NSProgressIndicator, to match my UI. Thanks! bob, ___ Cocoa-dev mailing list

Application badge (like Mail) in views other than the doc icon?

2012-01-15 Thread Robert Monaghan
Hi Everyone, My app has an NSCollectionView of devices, each with a custom icon. I have a need to display the number of downloads happening from a given device. The way that I want to do this, is to place a badge on each icon. I have just tried to implement a clone of the NSDockTile badge that

Re: ALLOC/FREE problems with a NIB..

2012-01-03 Thread Robert Monaghan
Hi Martin, Thanks for the suggestion! Believe it or not, it ended up being a for loop overwriting memory under a very specific condition. This would cause a malloc to be corrupted, (for instance.) Nothing like a wild goose chase. I looked everywhere for this one. Best Regards, bob. On Jan 3,

ALLOC/FREE problems with a NIB..

2012-01-01 Thread Robert Monaghan
Hi Everyone, I seem to be crashing with the following message: malloc: *** error for object 0x104839c08: incorrect checksum for freed object - object was probably modified after being freed. *** set a breakpoint in malloc_error_break to debug However, malloc_error_break never gets called. I

Re: ALLOC/FREE problems with a NIB..

2012-01-01 Thread Robert Monaghan
file that contains a NSCollectionView with the NSView for the actual Icon. Bob.. On Jan 1, 2012, at 9:51 AM, Robert Monaghan wrote: Hi Everyone, I seem to be crashing with the following message: malloc: *** error for object 0x104839c08: incorrect checksum for freed object - object

Finder File Size discrepancy..

2011-12-27 Thread Robert Monaghan
. Robert Monaghan Glue Tools LLC P.O.Box 24124 Santa Barbara, CA, 93121 United States tel: +1 805 456 7997 fax: +1 805 456 7998 www.gluetools.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments

Re: Finder File Size discrepancy..

2011-12-27 Thread Robert Monaghan
.) I had not heard that SI had adopted metric terms.. :) Thanks for your thoughts! Its an annoying problem. Not a major issue. Enjoy the Holidays! bob. On Dec 27, 2011, at 11:07 AM, Scott Ribe wrote: On Dec 27, 2011, at 9:57 AM, Robert Monaghan wrote: Wow, I wake up one morning

Sheet created by NSObjectContoller??

2011-12-17 Thread Robert Monaghan
Hi Everyone, Perhaps someone can help point me in the right direction on this: I have an NSObjectController that maintains a UI for me. I have an NSTextField which contains numerical value. You could type in a number, which populates an NSNumber object deep inside my code.. Magically, my

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Robert Monaghan
, and out pops a sheet! I am going to see about validation. Perhaps that is how this is happening. bob.. On Dec 17, 2011, at 11:10 AM, Peter wrote: Am 17.12.2011 um 19:59 schrieb Robert Monaghan: Hi Everyone, Perhaps someone can help point me in the right direction on this: I have

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Robert Monaghan
-bindings.html I couldn't make any of these work though. And that's about all I could find - no answers really. Am 17.12.2011 um 20:17 schrieb Robert Monaghan: The binding is straight forward.. You create an NSObjectController, and set the Mode to Class and the Class Name to your

Re: drawRect not being called by NSCollectionView..

2011-10-12 Thread Robert Monaghan
fine, yet my second one needs all of these Animation layers enabled? Progress at least! My hunch is this: Two separate NSCollectionViews needs some Core Animation tweaking to make work. bob. On Oct 10, 2011, at 7:43 PM, Robert Monaghan wrote: Well, After some troubleshooting, it looks like

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-11 Thread Robert Monaghan
Hi, A quick word of warning, while QTKit is being deprecated for AVFoundation/Core Media, there is no third party codec support in the new APIs. I would consider this while you develop your app. I doubt that 3rd party codec support for Core media is going to arrive as fast (or as complete) as

Re: drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
with a proper superview set? bob. On Oct 10, 2011, at 4:49 PM, Robert Monaghan wrote: Hi Everyone, I can't seem to get an NSCollectionView to render an of the NSCollectionViewItems' NSViews. I have an NSCollectionView that is bound to an NSArrayController's arrangedObjects

Keyboard NSEvents and a NSObjectController?

2011-10-05 Thread Robert Monaghan
Hi Everyone, It seems to me that there isn't an easy way to do this.. I have a bunch of Objects that are in an NSArrayController. My UI is bound to an NSObjectController which is then set to work with one of these objects (in the ArrayController). The user essentially selects one of the

Re: ARC and Singletons

2011-08-05 Thread Robert Monaghan
Submitted as an enhancement request.. :) Bug ID# 9908437 bob.. On Aug 2, 2011, at 5:29 PM, Dave Zarzycki wrote: Karl, This is not on our todo list or any list that I know of. Please file a bug report if this enhancement request is interesting to you. Thanks! :-) davez On Aug

Re: rerunning an NSOperation object

2011-03-06 Thread Robert Monaghan
Hi Shane, NSOperationQueue will not let you re-run a previously run NSOperation Object. What I did to get around the problem was to create my own NSObject that does what I want. I then wrapped the object with an NSOperation object to run. Once complete, I can simply re-use my NSObject by

baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
Hi Everyone.. I am loosing my mind with NSURL's initFileURLWithPath. (Trying to build a 10.5 app.. btw) If I create a NSURL object with a local file path, everything looks as it should, when stepping through the code with the debugger. However, when I use [myURL path] in my code, I get a path

Re: baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
ends up being a path to my binary. bob. On May 18, 2010, at 12:55 PM, Mike Abdullah wrote: Show us some code. On 18 May 2010, at 09:49, Robert Monaghan wrote: Hi Everyone.. I am loosing my mind with NSURL's initFileURLWithPath. (Trying to build a 10.5 app.. btw) If I create

Re: baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
to autorelease when creating url ? Volker Am 18.05.2010 um 13:52 schrieb Robert Monaghan: Hi Mike, This is pretty trivial.. I have a string that is coming from an FCP XML file. The string looks like this: file:/localhost/Users/bob/Movies/ARRI/ELAP/shot_1_2/Imagery/Proxies

Re: baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
/Development/GT_Dig/GT_Cons/build/Debug/, encoding = 134217984, base = (null)}} bob. On May 18, 2010, at 2:12 PM, Abhinay Kartik Reddyreddy wrote: On May 18, 2010, at 7:52 AM, Robert Monaghan wrote: Hi Mike, This is pretty trivial.. I have a string that is coming from an FCP XML file

Re: (solved?) baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
Ok, I am doing this now, which *seems* to work. NSURL *url = [NSURL URLWithString:[[pathurlArray objectAtIndex:0] stringValue] relativeToURL:nil]; bob.. On May 18, 2010, at 2:20 PM, Robert Monaghan wrote: The path from [[pathurlArray objectAtIndex:0] stringValue] is going into the NSURL

Re: (solved?) baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
Interesting.. The source of this path is from Final Cut Pro. I can't say how they come up with the path. I will ping some people and find out. bob. On May 18, 2010, at 8:01 PM, John Joyce wrote: On May 18, 2010, at 12:39 PM, cocoa-dev-requ...@lists.apple.com wrote: Content-Type:

Remove/Disable NSPredicate from NSMutableSet?

2010-03-23 Thread Robert Monaghan
Hi Everyone, How does one remove a NSPredicate from an NSMutableSet? I want to reuse the NSMutableSet for another purpose, but I have to strip out the Predicate that I assigned. Passing filterUsingPredicate:nil causes an exception. Is there a way to do this? Or should I generate another

Re: NSPredicate to exclude specific elements??

2010-03-22 Thread Robert Monaghan
Good Suggestion! Let me look. bob. On Mar 21, 2010, at 4:43 PM, Kyle Sluder wrote: On Sun, Mar 21, 2010 at 12:47 PM, Robert Monaghan b...@gluetools.com wrote: I've replaced the not predicate with all sorts of combinations. I get a NSInvalidArgumentException the moment the NSPredicate

NSPredicate to exclude specific elements??

2010-03-21 Thread Robert Monaghan
Hi Everyone, You would think this is simple, but I can't figure this out. Lets say I have a pile of NSString Paths in an array, where some of them have the word GREEN in the file name. I've been trying to build an NSPredicate which would exclude elements that contain the name.. Every attempt

Re: NSPredicate to exclude specific elements??

2010-03-21 Thread Robert Monaghan
haven't found any working examples or docs explaining the practical use of NOT or NONE, etc.. on Apple's site) Bob Sent from my iPhone On Mar 21, 2010, at 9:16, Jon Pugh jonp...@frostbitefalls.com wrote: At 7:54 AM -0700 3/21/10, Robert Monaghan wrote: Lets say I have a pile of NSString

Re: NSPredicate to exclude specific elements??

2010-03-21 Thread Robert Monaghan
Hi Kirk, The variable wildcardString would contain a string such as *GREEN* for a wildcard search to include files with that name, and for simplicity's sake a string like !*GREEN* for those that wish to exclude files that contain the string. Here is a sample bit of code.. BOOL foundStar = NO;

Re: How to get NSPathControl to resize programatically? (Solved..)

2010-03-10 Thread Robert Monaghan
, but thats what it took. bob.. On Mar 9, 2010, at 12:57 PM, Robert Monaghan wrote: Yeah, I did.. that didn't work either. Tried: [myPathControl sizeToFit]; bob. On Mar 9, 2010, at 12:33 PM, Sean McBride wrote: On Tue, 9 Mar 2010 12:26:14 -0800, Robert Monaghan said: I am changing the NSURL

How to get NSPathControl to resize programatically?

2010-03-09 Thread Robert Monaghan
Hi Everyone, I am changing the NSURL of a path, that drives NSPathControl. If I edit the path so that the new text element of that path is longer or shorter than the original path, I would need to have NSPathControl redraw itself.. Here is an example of what I am doing: (myPathControl is a

Re: How to get NSPathControl to resize programatically?

2010-03-09 Thread Robert Monaghan
Yeah, I did.. that didn't work either. Tried: [myPathControl sizeToFit]; bob. On Mar 9, 2010, at 12:33 PM, Sean McBride wrote: On Tue, 9 Mar 2010 12:26:14 -0800, Robert Monaghan said: I am changing the NSURL of a path, that drives NSPathControl. If I edit the path so that the new text

Using a NSTextField inside a NSMenuItem?

2010-03-09 Thread Robert Monaghan
Hi Everyone, Another Question: How does one make a NSTextField work inside an NSMenuItem? (For 10.5/10.6) I can place the NSTextField into a View that I've created in a NIB file, and have added it to the NSMenuItem using setView: It shows up perfectly, and I can pre-populate the text field

Cloning an NSXMLElement and its children?

2010-02-02 Thread Robert Monaghan
Hi Everyone.. Is there an easy way to clone an XML tree in Cocoa? Or will I be going thru recursion code hell? :) Thanks! bob. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the

Re: Cloning an NSXMLElement and its children?

2010-02-02 Thread Robert Monaghan
Its a fairly deep copy. There are several nodes deep. I am trying to copy parts of the tree, so that I don't have to write code to regenerate them. bob. On Feb 2, 2010, at 4:26 PM, Jens Alfke wrote: On Feb 2, 2010, at 4:16 PM, Robert Monaghan wrote: Is there an easy way to clone an XML

Re: Cloning an NSXMLElement and its children?

2010-02-02 Thread Robert Monaghan
Actually, I was able to use copyWithZone to do what I needed. Nice! bob. On Feb 2, 2010, at 4:28 PM, Robert Monaghan wrote: Its a fairly deep copy. There are several nodes deep. I am trying to copy parts of the tree, so that I don't have to write code to regenerate them. bob. On Feb 2

Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
Is it possible to share a DataModel and resulting db file between 2 apps? If so, what sort of pitfalls are present? I want to create an App that creates the DB file, and a plugin for another App, that reads the database file. Thanks! bob.. ___

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
to access over the network at the same time. Mike. On 28 Dec 2009, at 17:50, Robert Monaghan wrote: Is it possible to share a DataModel and resulting db file between 2 apps? If so, what sort of pitfalls are present? I want to create an App that creates the DB file, and a plugin for another

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
: But from remote and local machine at once? This sounds dangerously like a multi-user setup which Core Data is very much NOT designed for. Trying to force it will only result in pain later. On 28 Dec 2009, at 18:19, Robert Monaghan wrote: Nice! I suspected as much. So, I should implement

What is the best way to determine what type of removable media is inserted? (ie: DMG)

2009-11-07 Thread Robert Monaghan
Hi Everyone, Is there a way to determine if a mounted removable volume is a DMG or not? I need to distinguish between a USB Stick and a DMG in my app. I have played with statfs(), but I can't seem to figure out a tangible/concrete difference. How does one figure out what type of removable

DMG Creation without using hdiutil..

2009-11-05 Thread Robert Monaghan
? Thanks! bob. Robert Monaghan Glue Tools LLC 1024A Quinientos St. Santa Barbara, CA, 93103 United States tel: +1 805 456 7997 fax: +1 805 456 7998 www.gluetools.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin

Fwd: DMG Creation without using hdiutil..

2009-11-05 Thread Robert Monaghan
Begin forwarded message: From: Robert Monaghan b...@gluetools.com Date: November 5, 2009 9:19:21 PM PST To: Dave Carrigan d...@rudedog.org Subject: Re: DMG Creation without using hdiutil.. Ahh, -puppetstrings give me some useful feedback. Thanks for the tip! I'll look at the plist

CF/NSNotifications on the same thread not working.

2009-06-01 Thread Robert Monaghan
Hi Everyone, I am trying to post a notification (a CFNotificationCenterPostNotification) on a thread from a CFNotificationCenterGetLocalCenter, to a NSNotificationCenter defaultCenter. All on the same thread, spun off from my main thread. The observer that I am adding, never gets called.

Binding Buttons and Popup Menus to NSDictionary made from a prefs plist?

2009-01-26 Thread Robert Monaghan
, but nothing else. Is there any sort of example that shows how an NSDictionary can drive a pile of controls with bindings? Or should I just brute-force this, and write other code? bob. Robert Monaghan Glue Tools LLC 629 State St. Suite 220 Santa Barbara, CA, 93101 United States tel: +1 805 456

NSTableColumn not usable with binder of class NSTextValueBinder

2009-01-17 Thread Robert Monaghan
am even binding anything. (My Custom NSCell doesn't even use/require bindings.) Could someone shed some more information on this fix? -- I am using IB 3.1.2 (677) and Xcode 3.1.2 Thanks in advance! bob. Robert Monaghan Glue Tools LLC 629 State St. Suite 220 Santa Barbara, CA, 93101 United

Graphics playback suggestion?

2009-01-06 Thread Robert Monaghan
Hi Everyone, I am trying to figure out what the best method is, to playback generated graphics. I am downloading image data over ethernet, and then processing the imagery. Currently I am creating a NSBitmapImageRep, and populating the buffer with my pixel data. I then draw this inside

Re: Any reason to avoid GCC-4.2 for Leopard and later targeted code?

2008-12-03 Thread Robert Monaghan
How about with Tiger users? Do the applications work there, too? Bob Sent from my iPhone On Dec 3, 2008, at 6:47 AM, Luca Ciciriello [EMAIL PROTECTED] wrote: No Idea, but I use currently GCC-4.2 for my Apps. I've to say that my applications are C++ and Objective-C++ apps. I haven't

NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Robert Monaghan
Hi Everyone.. I have a Daemon communicating with an application using NSConnection/ NSMachPort. It appears that they loose communication somehow, under extremely heavy CPU loads on the System. Has anyone heard of this, or experienced it? I am trying to duplicate what my customer is seeing.

EXC_BAD_ACCESS with 10.5.5 AppKit on some MacPros

2008-11-13 Thread Robert Monaghan
Hi Everyone.. I have a really weird problem with my basic application. From time to time, on only a very few machines, (running 10.5.5), my application crashes when a user clicks on a button. It reports a EXC_BAD_ACCESS. Here is the crash report: Code Type: X86 (Native) Parent

Re: NSConnection/NSMachPort and CPU Loads.

2008-11-13 Thread Robert Monaghan
Here is what my user reports: - Under extremely heavy CPU Loads, my software app, and the daemon looses its connection. The user is rendering a lot of imagery on the same machine. I am assuming that the CPUs are being maxed out with a lot of threads tying up the machine. - Just about