Using core data binary and string attributes with NSTextView

2009-10-17 Thread Robert
I'm new to core data and bindings and need some help. In my model, I've got an attribute called "story". This holds text, so I set the attribute type to string. I used bindings in IB to connect the story attribute to an NSTextView. When I ran my app, an exception was thrown. The message in

Re: Identifying a specific Mac model

2015-09-14 Thread Robert Tillyard
Hello, John, I use this to get the model number: + (NSString *)computerModel { char modelBuffer[256]; size_t sz = sizeof(modelBuffer); if (0 == sysctlbyname("hw.model", modelBuffer, &sz, NULL, 0)) { modelBuffer[sizeof(modelBuffer) - 1] = 0;

Re: Yosemite NSCollectionView appropriate for spreadsheet-like view?

2016-05-03 Thread Robert Clair
share it. …Robert > > Message: 1 > Date: Tue, 03 May 2016 11:53:16 -0700 > From: Jens Alfke mailto:j...@mooseyard.com>> > To: thatsanicehatyouh...@me.com <mailto:thatsanicehatyouh...@me.com> > Cc: cocoa-dev@lists.apple.com <mailto:cocoa-dev@lists.apple.com> >

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 elemen

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 wrote: > > On 11/20/2016 8:15 PM, Robert Monaghan wrote: >> I have be

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Since the file system is case insensitive, why not store the path in upper or lower case, and convert the path you’re comparing accordingly? > When adding new files, I need to make sure the file is not already in the > database so I compare the paths. This works well except when the case > chang

Re: URLByResolvingBookmarkData not case sensitive

2015-01-07 Thread Robert Martin
Ignore my previous post - I hadn’t looked at the thread! > On Jan 7, 2015, at 8:40 AM, Robert Martin wrote: > > Since the file system is case insensitive, why not store the path in upper or > lower case, and convert the path you’re comparing accordingly? > >> When adding

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 wrote: > > I could not find the prefs app > > > https://developer.apple.com/library/mac/technotes/tn2

Re: highlight a nsview on click-drag?

2015-03-15 Thread Robert Martin
Why bother with a timer loop to animate the wiper when that functionality is built-in through CoreAnimation? Especially since you are using an image as the wave background. CoreAnimation will move the wiper smoothly and accurately. All you have to do is provide the distance it must travel and th

Re: Rotate a standard Cocoa control?

2015-05-08 Thread Robert Martin
Graham, Thanks so much for posting this. I’ve always wondered how to go about doing this kind of thing, but never had the actual need in a project to prod me to figure it out. Your app and code are terrific at making things clear. Thanks, Rob > On May 7, 2015, at 11:54 PM, Graham Cox wrote:

NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
I’m having some issues. I’m tracking a folder that is I watch via kqueue, and if a .plist arrives, I process it immediately. The plist contains a dictionary, which is successfully read with dictionaryWithContentsOfFile:. If I log the dictionary description, it is accurate. The dictionary only co

Re: NSPropertyListSerialization weirdness

2015-07-26 Thread Robert Martin
Thanks Jens, I’ll test for NSNulls instead. I know the dictionary is valid because after I read it with dictionaryWithContentsOfFile:, I log it, and it ‘looks' fine… > On Jul 26, 2015, at 5:44 PM, Jens Alfke wrote: > > >> On Jul 26, 2015, at 2:28 PM, Robert Martin w

Re: ARC and Manual Memory Management

2015-08-10 Thread Robert Martin
I found fmdb’s solution instructive and very helpful. If you download the source and take a look it might give you some ideas. Rob ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

bad behavior from unlockFocus on 10.6

2009-09-03 Thread Robert Clair
I have this piece of code in my drawing program: [image lockFocus]; NSBitmapImageRep* bitmapRep = [[NSBitmapImageRep alloc] initWithFocusedViewRect: NSMakeRect( 0.0, 0.0, width, height) ]; [image unlockFocus]; image is an NSImage with a single representation, either

Re: bad behavior from unlockFocus on 10.6

2009-09-03 Thread Robert Clair
Hi Ken - > This all worked fine until 10.6. The original NSImage object was left unmolested. Nope. :-) Clearly you're seeing behavior change somewhere, but this attribution is not correct. -[NSImage lockFocus] is a commonly misunderstood method. It is and always has been lossy. No

Snow Leopard turns CMYK jpegs green

2009-09-09 Thread Robert Clair
Cocoa has problems with CMYK jpegs. Going from Tiger to Leopard it became ambivalent about whether a CMYK pixel value of 0, 0, 0, 0 meant black or white. (I remember reading somewhere that there is an ambiguity in the jpeg standard.) You can see this with Preview. Get yourself a CMYK tiff

Debugging IB 3.2 problem

2009-09-21 Thread Robert Mullen
I have a problem with IB 3.2 in one of my plugins. I get the following error message: ibtool failed with exception: Some objects didn't get the ibBeginArchivingDocument:withContext: callback. A class has probably overriden the method without calling through to super. I don't want a solut

Re: Programming Style: Method Definition with or without a semicolon.

2009-10-15 Thread Robert Tillyard
I keep meaning to file an enhancement request for the space before ()'s, I have to go back and manually change every occurrence and then add spaces after the commas in the function arguments. I also prefer - (void)foo { } over - (void)foo { } Regards, Rob. On 16 Oct 2009, at 02:30, Rolan

DMG Creation without using hdiutil..

2009-11-05 Thread Robert Monaghan
older? 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

Fwd: DMG Creation without using hdiutil..

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

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 vol

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
r. (I 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 wrote: At 7:54 AM -0700 3/21/10, Robert Monaghan wrote: Lets say I have a pile of NSString Paths in

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: 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 wrote: >> I've replaced the "not" predicate with all sorts of combinations. I get a >> NSInvalidArgumentException the moment t

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 NSMuta

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
e NSString value 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 initFileURLWi

Re: baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
Immediately after the NSURL object is created. (so there is no danger of being released.) bob. On May 18, 2010, at 2:03 PM, Volker in Lists wrote: > Robert, > > when/where do you call [url path]? It may be released at that moment and thus > display garbage! What happens if you o

Re: baseURL problem with +fileURLWithPath:

2010-05-18 Thread Robert Monaghan
17984, 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. The string loo

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 >

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

Re: six things I wasn't able to do with Cocoa

2010-05-28 Thread Robert Martin
Try using the QTMovie method frameImageAtTime: withAttributes: error: You can specify the image size you want returned in the attributes dictionary (along with the image format). On May 28, 2010, at 2:55 PM, Bill Appleton wrote: > the remaining problem is that the movie posetr returns a size

I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Robert Lorentz
I've been struggling with this issue for a long time, and have not found any working/good example on the net or in any chat.. What I REALLY want to achieve (this can be poor performance): take a JPG (or PNG is great too) file on disk, result with a float *bytes; array holding the floating poin

Re: I need float resolution bitmap data from a JPG using CIImage or similar helper

2010-06-01 Thread Robert Lorentz
On Jun 1, 2010, at 2:16 PM, David Duncan wrote: > On May 31, 2010, at 5:40 PM, Robert Lorentz wrote: > >> What I REALLY want to achieve (this can be poor performance): take a JPG (or >> PNG is great too) file on disk, result with a float *bytes; array holding >> the

Core Data issue .. where is my bug?

2010-06-13 Thread Robert Lorentz
Ok I have a core data .xcdatamodel created, and I've trimmed it down to include: Entity: MyType has attributes: name (string), description (string) - both have default values, both not-optional. I have set up an NSTableView with + and - buttons to add or remove MyType to an NSArrayController

Re: iOS4: UDP sockets in the background

2010-06-25 Thread Robert Vojta
On 23.6.2010, at 20:15, Gerd Knops wrote: > I have been doing that without a problem since early iOS 3, so no reason to > expect it would stop working in iOS4. FYI, doc quote ... Cancel any Bonjour-related services before being suspended. When your application moves to the background, and be

Re: can we have own application logo for ad-hoc release.

2010-06-25 Thread Robert Vojta
On 22.6.2010, at 8:05, Kalyanraju M wrote: > Hi,when loading the Ad-Hoc release into iTunes, there is a generic icon shown > in the Apps section. Additionally, the label shows "Unknown genre". Can i > have my own image and my own label at label "Unknown genre". Look at http://github.com/tapm

Re: Where is the preset?

2010-07-04 Thread Robert Vojta
at cocoa-dev-admins(at)lists.apple.com > > Help/Unsubscribe/Update your Subscription: > http://lists.apple.com/mailman/options/cocoa-dev/robert%40izyapps.com > > This email sent to rob...@izyapps.com ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.c

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

Re: Scanning images

2011-08-09 Thread Robert Tillyard
Hello, Eric, I thought that the machines I'm running it on were a range of 10.5 and 10.6 but it looks like I'm probably mistaken there. Sorry. Regards, Rob. On 9 Aug 2011, at 16:54, Eric Matecki wrote: > Hi Robert, > > I just downloaded it, but the Build (and Runtime) Requ

Incomplete Wake on LAN

2011-08-23 Thread Robert Douglas
Is there a way to wake up the display or to come out of idle sleep? I have a central computer communicating with several satellite Macs that generate and display our patterns. The satellites get no user input and I keep them awake with UpdateSystemActivity(). That all works great until there

Re: [Q] Handling "cancel" or "stop" button for NSProgressIndicator and on-going task

2011-09-01 Thread Robert Martin
No - creating the QT Movie must happen on the main thread - but after it's created, you can pass it off to secondary threads for processing… Rob On Sep 1, 2011, at 1:13 PM, JongAm Park wrote: > Hmmm.. probably.. enterQTKitOnThread allows to create and initialize QTMovie > objects on threads

Core Image Capture: ICScanner and brightness/contrast adjustments.

2011-10-05 Thread Robert Tillyard
Hello, I'm struggling to find documentation on using ICScanner apart from the Scanner Browser example which was really great and helped a lot but the images that are scanned are too light. In some scanner apps the user can set the brightness/contrast then scan to get a better image. Do I need

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 objects

drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
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. The NSCollectionViewItem is set up as a template, and also has its Outlet attached to an NSView. For fun

Re: drawRect not being called by NSCollectionView..

2011-10-10 Thread Robert Monaghan
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

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 w

Re: AVFoundation and kYUVSPixelFormat from AVPlayer

2011-10-12 Thread Robert Monaghan
. Currently, QTKit is really the only game in town for Media usage. Lets hope this changes sooner than later! bob On Oct 12, 2011, at 1:31 AM, Jean-Daniel Dupas wrote: > > Le 12 oct. 2011 à 04:46, Robert Monaghan a écrit : > >> Hi, >> >> A quick word of warning, while QT

Re: drawRect not being called by NSCollectionView..

2011-10-12 Thread Robert Monaghan
ionView working just 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 s

Re: Adding sound to movie with QTKit

2011-11-16 Thread Robert Martin
One way: Save your PCM audio to an AIF file, then open it as a QTMovie. Set the attribute 'QTMovieEditableAttribute' to TRUE. It will just have one audio track. Then: QTTimeRange videoRange = QTMakeTimeRange(QTZeroTime, [videoTrkOnlyMovie duration]); [

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 NSObjec

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Robert Monaghan
alue is 20, and currentValue is 15. Everything is great. Now type in 500 in the NSTextField, 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 Rob

Re: Sheet created by NSObjectContoller??

2011-12-17 Thread Robert Monaghan
gt; http://www.cocoabuilder.com/archive/cocoa/101845-using-validatevalue-forkey-error-to-limit-slider-range-with-cocoa-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

Finder File Size discrepancy..

2011-12-27 Thread Robert Monaghan
! bob. 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 com

Re: Finder File Size discrepancy..

2011-12-27 Thread Robert Monaghan
Wow, I wake up one morning, and the definition of Megabytes change. Did anyone explain this to the computers? The last time I checked, they still used binary.. ;) bob. On Dec 27, 2011, at 8:54 AM, Mikkel Islay wrote: > > On 27 Dec 2011, at 17:48, Robert Monaghan wrote: >> >

Re: Finder File Size discrepancy..

2011-12-27 Thread Robert Monaghan
, etc.) 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

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 have

Re: ALLOC/FREE problems with a NIB..

2012-01-01 Thread Robert Monaghan
. One idea I have, is that this could be a XIB 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

Re: ALLOC/FREE problems with a NIB..

2012-01-03 Thread Robert Monaghan
, 2012, at 3:50 PM, Martin Wierschin wrote: > Hi Robert, > >> 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 break

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

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 (Cocoa

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. Wha

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 NSCollect

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,

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 to

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
;> >>> Help/Unsubscribe/Update your Subscription: >>> http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com >>> >>> This email sent to luket...@apple.com > > ___ > > Cocoa-dev mailing list (Co

Re: animating addSubview with iOS4

2011-03-02 Thread Robert Vojta
I meant viewWillAppear/viewDidAppear, not disappear ... Sry ... Sent from my iPhone On 2.3.2011, at 11:36, Robert Vojta wrote: > That's because viewDidLoad doesn't mean it's going to be displayed now. It > just informs you that view was loaded. You have to

Re: rerunning an NSOperation object

2011-03-05 Thread Robert Martin
From the docs for NSOperation: ... "An operation object is a single-shot object—that is, it executes its task once and cannot be used to execute it again." On Mar 5, 2011, at 10:33 PM, Shane wrote: > I have an NSOperation object that has been placed in an > NSOperationQueue. I then execute th

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 wrappin

Re: Referencing struct fields in C

2011-05-30 Thread Robert Martin
What cured me of optimization-itis was this entry in ridiculousfish's ridiculously cool blog: http://ridiculousfish.com/blog/archives/2010/07/23/will-it-optimize/#fish_made_a_mess --Rob >> One thing that bothers me though. How the compiler will understand >> that the state is loop-invariant? S

Porting ResEdit Text Resources to OS X

2011-06-19 Thread Robert Hard
text units, each about 2-4 kbytes each. I have RFT TextEdit files of each panel. Thanks.. Robert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

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.. ___ Cocoa

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
ther machine is > also trying 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? >>

Re: Shared CoreData DataModel and DB file..

2009-12-28 Thread Robert Monaghan
wrote: > 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 su

Re: NSDate without time portion

2010-01-05 Thread Robert Claeson
On 5 Jan 2010, at 19:23, Chris Ridd wrote: > > On 4 Jan 2010, at 13:50, Quincey Morris wrote: > >> On Jan 4, 2010, at 02:26, Brian Bruinewoud wrote: >> >>> What's the best way to get an NSDate object for 'today' such that the time >>> is 00:00:00 (or any other constant). >>> I not interested

Re: NSDate without time portion

2010-01-05 Thread Robert Claeson
like > daylight savings. Not really. We use GMT (Greenwich, the "G" in GMT, is in North London) here in the UK and we do have daylight savings. GMT without daylight savings or any other features are commonly referred to as UTC nowadays. Robe

Re: NSDate without time portion

2010-01-05 Thread Robert Claeson
On 5 Jan 2010, at 20:59, mmalc Crawford wrote: > > On Jan 5, 2010, at 12:40 pm, Robert Claeson wrote: > >> (Greenwich, the "G" in GMT, is in North London) >> > Well, if we're being pedantic, South East of London, actually... > <http://maps.go

Re: NSDirectoryEnumerator and URLs

2010-01-13 Thread Robert Martin
Isn't the path returned by NSDirectoryEnumerator a relative path to the path you initialize it with? The docs say: "An NSDirectoryEnumerator object enumerates the contents of a directory, returning the pathnames of all files and directories contained within that directory. These pathnames are r

Garbage Collection Docs Puzzle

2010-01-25 Thread Robert Clair
The garbage collection docs section on the interior pointer issue shows this example: NSData *myData = [someObject getMyData]; [myData retain]; const uint8_t *bytes = [myData bytes]; NSUInteger offset = 0, length = [myData length]; while (offset < length) { // bytes remains valid until next

Re: Garbage Collection Docs Puzzle

2010-01-25 Thread Robert Clair
> The issue being worked-around is that of the compiler; during > optimization, if you stop referencing myData, [snip] Yes. As I said, I understand the issue - my only question was whether the short-circuited retain was enough to do it. I didn't know whether the compiler did this or the runtime

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 li

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

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

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 NSPa

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 t

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 using

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

2010-03-10 Thread Robert Monaghan
updated the URL path in NSPathControl. A lot of work, 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,

Custom view resizing

2009-05-29 Thread Robert Olivier
I'm a new Cocoa programmer working on my first non-trivial custom view and I have a question regarding the right way to handle view resizing. Say that I have a list of shapes that I need to draw left to right across my view, and this list grows over time. Eventually, I will need to draw

Re: Custom view resizing

2009-06-01 Thread Robert Olivier
Thanks Graham, While I was waiting for my post to get moderated I did implement the data model method of calculating the view bounds and thats working great. rjo On May 29, 2009, at 11:55 PM, Graham Cox wrote: On 29/05/2009, at 10:14 AM, Robert Olivier wrote: I'm a new

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.

window does not seem to respond to orderOut:

2009-06-02 Thread Robert Olivier
I'm implementing a shared inspector and following the guidance at http://borkware.com/rants/inspectors/ I have a method in my NSWindowController subclass: - (void) toggle { if(!visible) { visible = true; [self setDocument: [[NSDocumentController sharedDocumentControlle

Re: window does not seem to respond to orderOut:

2009-06-02 Thread Robert Olivier
Never mind ... silly newbie mistake .. didn't have the window outlet set in IB. rjo On Jun 2, 2009, at 8:15 PM, Robert Olivier wrote: I'm implementing a shared inspector and following the guidance at http://borkware.com/rants/inspectors/ I have a method in my NSWindowControlle

Desktop client for web application

2009-06-17 Thread Robert Černý
there a better method? Thanks Robert ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Sub

Re: Dynamically loading a part of a Window in Cocoa

2009-07-01 Thread Robert Martin
Perhaps the simplest way is to use a NSTabView - (you can set it to tabless). Then create all of your 'unrelated views' in separate tabs, and switch the tabs in your code. On Jul 1, 2009, at 3:21 AM, Debajit Adhikary wrote: I have an area of a Window (in my MainMenu.xib) which I'd like to

Re: NSLog / Console / Console Messages

2009-07-01 Thread Robert Martin
May not be relevant, but if you have an NSTask that fires a shell script using /bin/sh, NSLog will no longer work. (This is solved by using /bin/tcsh). Rob On Jul 1, 2009, at 4:38 PM, Dimitri Bouniol wrote: Another way to get the logs messages would be to open your app using Terminal. To

Re: [Job] Cocoa developer at Skype (Mac/iPhone)

2009-07-18 Thread Robert Claeson
in requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/robert%40synapsetech.co.uk This email sent to rob...@syn

List classes in Bundle?

2009-07-22 Thread Robert Mullen
Is there a way to actually list all the classes in a given bundle? I know I can look one up if I know the name but I would like to actually be able to present a list. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin r

Re: List classes in Bundle?

2009-07-23 Thread Robert Mullen
ses = newNumClasses; mClass = realloc(mClass, sizeof(Class) * numClasses); newNumClasses = objc_getClassList(mClass, numClasses); } for (i=0; i On Jul 22, 2009, at 12:00 PM, Robert Mullen wrote: Is there a way to actually list all the classes in a given bundle?

FreeTDS Cocoa Sample?

2009-08-10 Thread Robert Mullen
I have scoured the archives and the web in general looking for a sample XCode project that uses FreeTDS. Does anyone know where one can be found or would anyone be kind enough to share some source code with me? What I have done so far is to compile FreeTDS 0.82 on my system and successfully

  1   2   3   4   >