A handy console output category .

2011-11-15 Thread John C. Randolph
Hi All, Recently, I was writing a command-line tool and I didn't feel like dropping down to printf() for console output, so I wrote this category. Drop this in your project… @interface NSString (console) - (void) writeToFileHandle:(NSFileHandle *) handle; - (void) writeToStdOut; -

Re: Sample code using the new document model?

2011-09-15 Thread John C. Randolph
On Aug 26, 2011, at 7:55 PM, Jerry Krinock wrote: I'm just surprised that, of 733 Sample Code projects available in the Mac Dev Center, none of them use either of these much-touted but quite complicated new features. Sample code projects get updated in DTS engineers' spare time, for the

Re: image rotation

2011-05-04 Thread John C. Randolph
Several years ago, I wrote this sample code project: http://developer.apple.com/samplecode/Transformed_Image/index.html It demonstrates the use of NSAffineTransform to rotate, scale, and shear images. -jcr On Apr 29, 2011, at 7:48 AM, Amy Heavey wrote: Hi, I'm trying to generate a new

Re: NSWorkspaceWillPowerOffNotification not working with Qt Cocoa Mac Application

2011-04-08 Thread John C. Randolph
On Apr 7, 2011, at 11:34 PM, manoj wrote: I am working on Mac application using Qt Cocoa. Please help me to figure out what is the difference between two. You'll have to ask Nokia. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: NSTextField in NSMenuItem

2010-12-24 Thread John C. Randolph
NSMenuItem's -setView: method should do what you need. -jcr On Dec 24, 2010, at 11:49 AM, Joshua Garnham wrote: How can I display an editable NSTextField inside an NSMenuItem? I'm looking to do something similar to Spotlight. Would it work by simply usingsetView: on the menu item?

Re: NSTask with unzip

2010-12-12 Thread John C. Randolph
You don't need to launch a separate task for this. Just use Pierre- Olivier LaTour's NSData category: http://code.google.com/p/polkit/ • NSData+GZip adds gzip compression / decompression methods to NSData -jcr ___ Cocoa-dev mailing list

Re: convert CFRange to NSRange?

2010-12-12 Thread John C. Randolph
On Dec 12, 2010, at 7:34 AM, Matt Neuburg wrote: I feel like I'm missing something. I can't seem to typecast as CFRange to an NSRange. I know I can pull a CFRange apart and reassemble it as an NSRange, but shouldn't there be a simpler way? m. CFRange is defined as a pair of unsigned

Re: Garbage collection 32 64-bit

2010-09-25 Thread John C. Randolph
On Sep 14, 2010, at 7:34 AM, Jonathan Guy wrote: Hi all Having an issue with GC. I compile an app 32 64-bit intel only with GC supported (not required). The app has a webview which loads a flash animation (hence requiring the flash plugin). Does it have to be a flash animation? Could

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev

Re: NSOutlineView Drag and Drop

2010-09-15 Thread John C. Randolph
On Sep 14, 2010, at 7:36 PM, k...@highrolls.net wrote: what do i need to implement so I can drag item within an NSOutline View? http://developer.apple.com/library/mac/#samplecode/DragNDropOutlineView/Introduction/Intro.html -jcr ___ Cocoa-dev

Re: isTemporaryID unrecognized selector - how do I debug this?

2010-09-09 Thread John C. Randolph
This was covered in a couple of WWDC talks. Look for the sessions on debugging. -jcr On Sep 9, 2010, at 12:23 PM, Sean McBride wrote: On Fri, 3 Sep 2010 19:52:54 -0700, Jerry Krinock said: http://developer.apple.com/mac/library/technotes/tn2004/tn2124.html Architecture Considerations

Re: recalling the original view height

2010-09-07 Thread John C. Randolph
Views have no storage for previous frame or bounds rectangles. If you want to remember them, you'll need to save them yourself. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Re: CALayer -drawInContext and GCD

2010-09-02 Thread John C. Randolph
On Sep 2, 2010, at 3:17 PM, David Duncan wrote: On Sep 2, 2010, at 11:29 AM, vincent habchi wrote: You mean I shall use your dispatch_async invocation instead of calling [layer setNeedsDisplay]? Calling -setNeedsDisplay arranges for -display to later be called on the current runloop.

Re: iTunes 10 UI

2010-09-01 Thread John C. Randolph
On Sep 1, 2010, at 8:15 PM, Eric E. Dolecki wrote: Top left, the traffic lights have been turned to the vertical. Is this something new or was this easy to do before? Is it just a custom implementation, or? If you miniaturized the iTunes 9 window, the window controls are vertical. Not sure

Re: Document Cursor

2010-08-25 Thread John C. Randolph
On Aug 25, 2010, at 12:30 PM, Richard Somers wrote: On Aug 25, 2010, at 1:30 AM, Quincey Morris wrote: @implementation MyCustomDocumentView - (void)windowDidBecomeKeyNotification:(NSNotification *)notification { if ([notification object] == [self window]) { NSPoint point = [[self

Re: Document Cursor

2010-08-24 Thread John C. Randolph
On Aug 23, 2010, at 9:41 PM, Richard Somers wrote: If a new document is opened and the cursor happens to already be over the view, the cursor is not updated until it is moved out of the view and then back in. How can I fix this? None of the NSTrackingArea options address this issue. You

Re: stringByReplacingCharactersInRange leading to bus error

2010-08-18 Thread John C. Randolph
-stringByReplacingCharactersInString: creates and returns a new string, which is autoreleased. You're getting the bus errors when something tries to access that string after it's been released. -jcr On Aug 17, 2010, at 2:03 PM, James Miller wrote: Hello. I'm a little new to Objective-C

Re: Erratic Cocoa Behavior

2010-08-16 Thread John C. Randolph
That looks like what happens when you turn on show tracking rectangles in Quartz Debug. It could also be the effect of turning on NSShowAllDrawing in your app's defaults. -jcr On Aug 16, 2010, at 2:07 PM, k...@highrolls.net wrote: Hello fritz - I will reply to the list. I did paste the

Re: iPhone Camera

2010-08-11 Thread John C. Randolph
On Aug 11, 2010, at 6:24 PM, k...@highrolls.net wrote: Can an iPhone app get input from the camera? Yes. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Allowing incoming connections.

2010-03-24 Thread John C. Randolph
So, I've got this app that connects to RTSP streams, and I'd rather not nag the user every time it's launched with that Do you wan the application to accept incoming network connections? dialog box. Anyway to have the user authorize it once and have that authorization stick, or is this a

Accessing the contextual menu of a QTMovieView?

2010-03-10 Thread John C. Randolph
I'd like to add an item to the menu that comes up when you right-click on a QTMovieView. I want to copy the URL of the movie it's showing into the pasteboard. I'm not finding any obvious API to get hold of that menu. Any suggestions? Thanks, -jcr

Re: Custom NSWindow drawing

2010-01-02 Thread John C. Randolph
On Jan 2, 2010, at 10:44 AM, PCWiz wrote: The only reason I dont want to completely draw the whole window is that resizing is not easily implemented with a custom window. Sure it is. This is how I did it in the Core Data Stickies example: #import StickyResizeCornerView.h @implementation

Re: NSAttributedString fill with gradient

2009-12-19 Thread John C. Randolph
There's a far easier way to do it than that, which is to use compositing instead of clipping. On Dec 17, 2009, at 9:49 PM, Gordon Apple wrote: If you capture the entire laid-out text string as a single Bezier path, then you can fill it with whatever you want -- gradient, image, burning

[JOB] iPhone development gig in Tampa, FL.

2009-09-23 Thread John C. Randolph
Ladies and Gentlemen, Looks like I'm about to go to Florida for a month, and the client wants me to help them find someone to join them on a permanent basis. The work is an in-house app for managing their service vendors and streamlining their billing processes. If you've got a solid

Re: [JOB] iPhone development gig in Tampa, FL.

2009-09-23 Thread John C. Randolph
On Sep 23, 2009, at 7:54 PM, Scott Anguish wrote: And a reminder, all job offers to be posted must be sent to the admin address for approval first. Sorry about that, Scott. I didn't require pre-approval for job postings back when I moderated cocoa-dev, and I didn't realize that you

Re: Problem with fontDescriptorWithFontAttributes:

2009-09-19 Thread John C. Randolph
Looks like NSFontColorAttribute is deprecated after 10.4. Try NSForegroundColorAttributeName instead. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact

Re: Developing a Stand-Alone Service in Snow Leopard

2009-09-14 Thread John C. Randolph
On Sep 13, 2009, at 10:55 PM, Steve Cronin wrote: I have convinced myself that the only way to get Snow Leopard to recognize the newer version of the service is to log out and back in. This is tedious. Is there something I'm missing? As I recall, each app builds its services menu when it

Re: What about revamping OpenUp.app for Snow Leopard?

2009-09-03 Thread John C. Randolph
I'd completely forgotten about that presentation. Thanks for the link to the slides. I'll have to dig up my 2003 WWDC disks and watch it. -jcr “The two most important tools an architect has are the eraser in the drawing room and the sledge hammer on the construction site. ” -Frank Lloyd

Re: [iphone] split an image

2009-08-08 Thread John C. Randolph
On Aug 4, 2009, at 12:45 PM, Dragos Ionel wrote: Hi, Is there a simple way to split an image? For example, divide it in to 2x2 = 4 pieces. Is UIImage the way to go? If you want to slice and dice an image like that, you probably want to use CGImage instead. See

Re: [iPhone] networking-is it crippled on the simulator?

2009-08-04 Thread John C. Randolph
On Aug 4, 2009, at 5:43 AM, James Lin wrote: Hi all, Does anyone know the limitation of the iPhone simulator when it comes to networking? Is it crippled on the simulator? I've tried two seperate ways of opening up a server socket. 1. is by opening up a CFSocket 2. is by a socket wrapper

Re: Comparing NSImages

2009-07-31 Thread John C. Randolph
I wrote a sample project to find the difference image between to given images several years ago. You can find that code here: http://developer.apple.com/samplecode/Image_Difference/index.html These days, I'd do this kind thing in a Quartz Composer view. -jcr

Re: Core Animation rendering problem

2009-07-23 Thread John C. Randolph
On Jul 22, 2009, at 10:05 PM, Randall Meadows wrote: newBounds.origin.x -= delta/2.0; newBounds.size.width += delta; newBounds.origin.y -= delta/2.0; newBounds.size.height += delta; BTW, you might want to look up the NSInsetRect() function. -jcr

Re: Recording phone calls

2009-07-22 Thread John C. Randolph
On Jul 22, 2009, at 2:19 AM, Mahaboob wrote: Is it possible to develop an application for recording phone calls? Possible? Maybe. Supported? No. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Responding to mouseDown in an NSImageView

2009-07-21 Thread John C. Randolph
On Jul 21, 2009, at 11:35 AM, Lynn Barton wrote: My window has an NSImageView object within an NSScrollView. After setting the image and the image frame, I want to detect and respond to mouseDown on the image. The image appears in the view, but I found nothing responding to the mouseDown.

Re: Cocoa Graphics Parsing

2009-07-20 Thread John C. Randolph
On Jul 20, 2009, at 7:25 PM, Courtney Arnold wrote: I want to be able to manually parse an image of a UPC barcode. That's not parsing, that's image recognition. There's a rather extensive academic literature on the subject. -jcr ___

Re: Mouse move messages sent to both superview and a subview

2009-07-20 Thread John C. Randolph
On Jul 19, 2009, at 12:39 AM, Oleg Krupnov wrote: I want to display one view on top on the other view, so according to the documentation, I nest the topmost view inside the background view. It works just fine except that the mouse move messages are sent to both the subview and the superview,

Re: iPhone runtime browser.

2009-07-19 Thread John C. Randolph
On Jul 19, 2009, at 5:33 AM, Nicolas Seriot wrote: There is also another iPhone runtime browser: http://code.google.com/p/runtimebrowser/ Here is what it dumps on iPhone OS 3.0: http://seriot.ch/resources/dynamic_iPhone_headers/3_0/ Looks like they got rather more elaborate about it than

iPhone runtime browser.

2009-07-18 Thread John C. Randolph
For anyone who hasn't done it themselves already, I just wrote up a little Cocoa touch app that shows you all the classes in the objective- C runtime. No point in submitting it to the app store, but if anyone would like a copy, drop me a note and I'll mail it to you. It's a 36KB .zip

Re: iPhone runtime browser.

2009-07-18 Thread John C. Randolph
Oop, forgot to add: send requests to me, not the list. -jcr “The two most important tools an architect has are the eraser in the drawing room and the sledge hammer on the construction site. ” -Frank Lloyd Wright ___ Cocoa-dev mailing list

Re: iPhone runtime browser.

2009-07-18 Thread John C. Randolph
Couple of notes: I built it for the 3.1 SDK, and I didn't try it on anything earlier. One friend of mine told me that to make it work on the 3.0 SDK, he had to change line 31 of ClassesViewController.m from: [self.tableView reloadData]; to [super.tableView reloadData];

Re: Why do I receive KVO notification when new value IS the old value?

2009-07-08 Thread John C. Randolph
On Jul 8, 2009, at 3:05 PM, Jerry Krinock wrote: Why do I receive KVO notifications when a key is set to the same value that it already is? Because the notification mechanism doesn't know or care if you're setting the same value that's already there. -jcr

Re: looks like my syntax is wrong. Does not compile

2009-07-04 Thread John C. Randolph
On Jul 3, 2009, at 9:29 PM, Agha Khan wrote: NSNumber* aNumber = [Aobject _Edge] numberWithInt:j; // looks like my syntax is wrong. Does not compile Objective-C isn't smalltalk. All message expressions have to be enclosed in square brackets: NSNumber* aNumber =

Re: User interface validation doesn't work, right?

2009-07-03 Thread John C. Randolph
On Jul 2, 2009, at 10:52 AM, Bill Cheeseman wrote: Apple will probably say I should move on to Cocoa Bindings and get over it. I certainly would. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or

Re: Dynamically loading a part of a Window in Cocoa

2009-07-01 Thread John C. Randolph
On Jul 1, 2009, at 12:21 AM, Debajit Adhikary wrote: I have an area of a Window (in my MainMenu.xib) which I'd like to populate dynamically with unrelated views such as an NSTable, IKImageBrowserView etc. at different points of time depending on some user-selected criteria. - How do I

Re: Raw Infrared Data

2009-06-30 Thread John C. Randolph
On Jun 30, 2009, at 7:03 AM, Mr. Gecko wrote: Is there anyway to get raw Infrared data from the Apple IR Controller? AFAIK, there's no published API for that, but could take a look through the classes in the Kernel Framework documentation and see if I'm mistaken. If not, you should

Re: Any Cocoa Developers on this list in Tallinn, Estonia?

2009-06-23 Thread John C. Randolph
On Jun 21, 2009, at 5:17 PM, Kok-Yong Tan wrote: There's a potential client there I'd like to refer to you. Please reply to me off-list. Don't know about Estonia, but the guys at Software MacKiev would probably know. -jcr ___ Cocoa-dev

Re: -viewDidMoveToWindow without subclassing? NSViewController?

2009-04-17 Thread John C. Randolph
On a general note, if you want something to happen later than - awakeFromNib, you can always send - performSelector:withObject:afterDelay:cancelPrevious:. If you pass a delay of zero, it will happen the next time through the event loop. I've used this many times to deal with situations

Re: unrecognized selector sent to instance

2009-04-15 Thread John C. Randolph
Jason, I just tried dropping your code into a new Foundation Tool project, and it looks like your problem happens when your subclass of NSOutputStream sends [super initToFileAtPath:append:]. Check the subclassing notes on NSOutputStream. It looks like it's a class cluster, and

Re: persisting user credentials -- how?

2009-03-09 Thread John C. Randolph
On Mar 9, 2009, at 2:32 PM, Stefan Wolfrum wrote: Hi, I have a little app that needs a username password to log into some web service. These user credentials should be stored permanently so that the user doesn't have to enter them after each start of the application again. What's the

Re: mouseUp event for NSSlider

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 1:43 PM, Norio wrote: Hi, Would you give me any suggestions to get the mouseUp event for NSSlider? I've tried to make subclass of NSSlider and override mouseUp: and then put a breakpoint, but the debugger didn't stop at the breakpoint. What's tripping you up there

Re: [Q] NSObject's poseAsClass - Replacement?

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 12:00 PM, Eric Gorr wrote: On Mar 5, 2009, at 2:47 PM, Benjamin Stiglitz wrote: I have a need to use poseAsClass, but I see that it has been deprecated in 10.5 and won't be available for 64-bit applications. So, is there a replacement? WAYTTD: What are you trying to

Re: MVC - Model View Control

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 5:55 AM, Erik Buck wrote: As an author, I humbly recommend http://my.safaribooksonline.com/9780321591210 . Check out the table of contents. I'll second Eric's recommendation. Also, there's a pretty good conceptual intro to MVC in the Cocoa docs. See

Re: NSView bottom part is cut off

2009-03-05 Thread John C. Randolph
On Mar 5, 2009, at 9:29 PM, Adam Gerson wrote: I have a view that looks just fine in interface builder. When I display it in a window in my app it cuts off the bottom part of the content. Visual: http://screencast.com/t/YEXgqlAcP What could cause this? Looks to me like you've probably got

Re: NSScrollView's content view doesn't un-hide

2009-02-25 Thread John C. Randolph
On Feb 25, 2009, at 4:28 PM, Scott Hamilton wrote: Am I missing something? From your description, you're sending -setNeedsDispay to the the clipview, not to the subviews within the clipview. -jcr ___ Cocoa-dev mailing list

Re: OmniObjectMeter is now free

2009-02-25 Thread John C. Randolph
On Feb 24, 2009, at 8:04 PM, Ken Case wrote: You'll find it at http://www.omnigroup.com/developer/ omniobjectmeter/. Thanks, Ken! We also recently posted updated versions of our open source Omni frameworks to github, including OmniDataObjects (our CoreData-like implementation which

Re: What is a CALayer?

2009-02-17 Thread John C. Randolph
On Feb 17, 2009, at 10:40 AM, Gordon Apple wrote: OK, I've said it. WHAT is a CALayer? I'm using a lot of them and appreciate what they can do, but still don't understand them. It's an object that manages an OpenGL surface, its location in 3D space and its place in a hierarchy of

Re: Window Max Zoom Size

2009-02-12 Thread John C. Randolph
On Feb 12, 2009, at 9:42 AM, Anthony Smith wrote: What is the best way to set the max zoom size for NSWindow? I was able to implement a solution by overriding zoom but that feels rather invasive so I'm assuming there's probably a better way. Check the docs for -windowWillResize:toSize:.

Re: memory leak analyzer tools

2009-02-12 Thread John C. Randolph
On Feb 10, 2009, at 11:32 PM, Valentin Dan wrote: Hi, What tools are there to analyze memory leaks in programs ? Is there something that would tell the exact location of the leak (the object that's not being released) ? Try /Developer/Applications/Instruments. It has a template

Re: Matching String With ObjectForKey?

2009-02-12 Thread John C. Randolph
On Feb 12, 2009, at 10:45 PM, Chunk 1978 wrote: if ([defaults objectForKey:@OriginalBackground] == pathy) .. but they are the same! aren't they?! Nope. You're comparing two addresses, not the contents of the objects at those addresses. Try: if ([[defaults

Re: Getting pixel color from NSView

2009-01-25 Thread John C. Randolph
On Jan 25, 2009, at 11:06 AM, Ashley Perrien wrote: Is there a way to get the color of a pixel or area of an NSView during the drawRect method? Sure. Have a look at this: http://developer.apple.com/samplecode/Color_Sampler/index.html NSReadPixel() will tell you the color of the pixel

Re: Where is the Computer Image ?

2008-12-15 Thread John C. Randolph
On Dec 14, 2008, at 8:53 PM, Gerriet M. Denkmann wrote: Finder.app can show in its Sidebar an image of a computer. I want to create a button with this same (or similar) image. I can use [ sharedWorkspace iconForFile: fullPath ] to get an image of a home folder, or of a disk partition. But

Re: design pattern for data acquisition in background thread?

2008-09-28 Thread John C. Randolph
On Sep 27, 2008, at 8:10 PM, Joe Keenan wrote: On Sep 27, 2008, at 4:25 PM, Chris Hanson wrote: On Sep 26, 2008, at 3:37 PM, Joe Keenan wrote: Right now, the app controller object sends a message to the device controller, requesting the value of a specified variable. The device

Re: Need to override +(Class) class?

2008-09-28 Thread John C. Randolph
On Sep 27, 2008, at 7:38 PM, Dave DeLong wrote: My question is, do I need to override the +(Class) class method for each InputElement subclass, and if so how do I make a Class object? The only situations I can think of where you might want to do that is if you're writing some kind of a

Re: fullscreen quicktime across multiple monitors

2008-09-18 Thread John C. Randolph
On Sep 17, 2008, at 12:03 PM, Memo Akten wrote: Hi All, I'd like to create a little app the runs a quicktime movie (prores) fullscreen across multiple monitors. I think I can figure out the QTKit stuff, but couldn't find upto date documentation on going fullscreen. I've found some code

Re: How to read pixel values of monochrome images

2008-08-23 Thread John C. Randolph
On Aug 23, 2008, at 2:51 PM, Shawn Erickson wrote: On Fri, Aug 22, 2008 at 2:54 AM, Eduardo Areitio [EMAIL PROTECTED] wrote: I'm trying to read individual pixel values in a monochrome image using NSReadPixel, but I haven't been able to. I would much appreciate anyone's help It is

Re: ObjC 2.0, properties, KVC, special _ hacks etc.

2008-08-23 Thread John C. Randolph
On Aug 21, 2008, at 7:59 PM, Thomas Engelmeier wrote: Am 22.08.2008 um 00:59 schrieb Dave MacLachlan: Also, are the _ in front of member variables for Apple only (so we don't stomp on each other with member var names) or are they using them for the readability reason mentioned above?

Re: !foo vs foo == nil

2008-08-20 Thread John C. Randolph
On Aug 20, 2008, at 4:15 PM, Torsten Curdt wrote: There was a common perception that NULL is not really the same as nil. But seems like in the end it really is (void*)0. They differ in type, not in value. NULL is (void *) 0. nil is (id) 0. Nil is (Class) 0. Personally, I prefer if

Re: Outlet Initialization Uses Accessors

2008-08-20 Thread John C. Randolph
On Aug 20, 2008, at 8:09 AM, Gordon Apple wrote: I just had a revelation I though I would share -- thanks to some sample code David Duncan sent me. When IB makes a connection, it calls the outlet's accessor, if one is available. That fact can be used to initialize related items in

Re: !foo vs foo == nil

2008-08-20 Thread John C. Randolph
On Aug 20, 2008, at 5:04 PM, j o a r wrote: On Aug 20, 2008, at 4:56 PM, John C. Randolph wrote: Personally, I prefer if (!foo) over if (foo == nil), because the latter has the hazard of a typo that compiles. You can lose a fair bit of time staring at if (foo = nil) before you spot

Re: tracking area problems on 10.4.11

2008-07-04 Thread John C. Randolph
On Jul 2, 2008, at 11:21 AM, Wesley Smith wrote: I did that. my window and content view both have those methods defined. I've tried setting both of them to owner to no avail :( From QA #1355: Technical QA QA1355 Why aren't my tracking rects working? Q: I'm trying to implement tracking

Re: How do I draw text on a custom button?

2008-06-21 Thread John C. Randolph
Michael, By implementing -drawRect: in your view class, you become responsible for all drawing in that view. The code below doesn't attempt to draw the text, it only sets a value. To draw text in the current drawing context, see the - drawAtPoint:withAttributes: method of NSString for

Re: Race in Apple's NSTreeContoller/NSOutlineView

2008-06-21 Thread John C. Randolph
On Jun 21, 2008, at 12:44 AM, Godfrey van der Linden wrote: Ok I gave up. No response was expected and I received what I expected. Godfrey, Being a former Apple engineer, you should know as well as any of us that nobody is assigned to glean bug reports from the mailing lists. Until

Re: CoreData local and on server sync

2008-06-21 Thread John C. Randolph
On Jun 21, 2008, at 3:33 AM, René v Amerongen wrote: Dear All, Does someone has any experience about having a local data store which is syncing wit the server store using Coredata? Rene, This is not what CoreData is intended to do. CoreData is for local storage of object maps, and

Re: Learning Cocoa with RubyCocoa (was Regular Expressions)

2008-06-07 Thread John C. Randolph
I didn't say not to use Ruby if you want. What I took exception to is your statement that you don't have to fully learn Objective-C's syntax at the same time as Cocoa. Use whatever language you like, but if you're going to use Cocoa, you'd *better* learn Objective-C. -jcr

Re: Learning Cocoa with RubyCocoa (was Regular Expressions)

2008-06-07 Thread John C. Randolph
On Jun 7, 2008, at 7:38 AM, Jose Raul Capablanca wrote: I never understood why Apple stopped supporting the Java bridge to Cocoa. Two reasons: First, not enough people were using it to make it cost- effective to maintain, and second, it was sucking up a lot of development time when new

Re: Regular Expressions?

2008-06-06 Thread John C. Randolph
On Jun 6, 2008, at 2:10 AM, Allison Newman wrote: you don't have to fully learn Objective C's syntax at the same time as Cocoa. Ok, all kinds of alarm bells just went off. Obj-C is a very small delta from C, and if you avoid learning it, you will regret it. -jcr

Re: Cover Flow in Cocoa?

2008-05-29 Thread John C. Randolph
On May 28, 2008, at 2:19 PM, Scott Anguish wrote: I really can't stress how bad an idea using private API is. Speaking as a former DTS engineer, I will second Scott's statement above. -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Re: WWDC ticket needed

2008-05-15 Thread John C. Randolph
I got caught procrastinating, too. Anyone who can't make it to the show and wants to sell their ticket, I'm interested. -jcr John C. Randolph, VP, Engineering Stealth Imaging, Inc. [EMAIL PROTECTED] ___ Cocoa-dev mailing list (Cocoa-dev

Re: Event loop in a secondary thread? Nibless Cocoa?

2008-05-03 Thread John C. Randolph
On May 3, 2008, at 4:35 PM, Bruce Sherwood wrote: We very much want a native-mode version of Visual. If you want a native app, then don't fight the framework. Rolling your own event system, and doing away with nib files is not a project for someone new to the platform, and once you have

Re: NSBezier Artifacts

2008-04-26 Thread John C. Randolph
On Apr 25, 2008, at 10:18 PM, Aaron Wallis wrote: I've been having a fair few issues with NSBezier boxes lately (a.k.a boxes with rounded corners) I've created a NSView subclass that contains the following code, then threw a few on a window with some controls over the top: - ( void )

Re: How to import drawing paths into a Cocoa application?

2008-04-26 Thread John C. Randolph
On Apr 21, 2008, at 5:35 PM, Graham Cox wrote: - (NSPoint) pointOnPathAtLength:(float) length slope:(float*) slope; I notice that your lengthOfBezier() function does an approximation similar to what we'd get in postscript by executing flattenpath and then adding up the lengths of the

Re: Need Mac Developers

2008-04-03 Thread John C. Randolph
On Apr 3, 2008, at 11:19 AM, Kristan Kennedy wrote: I desperately need to hire two Mid-Level Mac/Cocoa Developers. Cocoa-dev is a technical discussion list. If you have a job opening, then post a description of the position, and include [JOB] in the title. If anyone's interested,

Re: CoreAudio / AudioUnit

2008-03-25 Thread John C. Randolph
On Mar 24, 2008, at 10:30 PM, Alex ROUGE wrote: Hi everybody. I guess it's not the best place to put my request but perhaps you can help with a CoreAudio / AudioUnit question. Try here: http://lists.apple.com/mailman/listinfo/coreaudio-api Cocoa-dev is a pretty high-volume list, and

Re: How do I disable this warning: local declaration of 'varname' hides instance variable

2008-03-24 Thread John C. Randolph
On Mar 23, 2008, at 10:31 PM, Dave Hersey wrote: If it's really important to you, send an incident to DTS and pay them $195 for the answer. I suspect they'll tell you what we've told you. Speaking as a former Apple DTS engineer, I would ask you not to advise Charlie to waste their time

Re: How do I disable this warning: local declaration of 'varname' hides instance variable

2008-03-24 Thread John C. Randolph
On Mar 23, 2008, at 10:04 PM, charlie wrote: I could care less what anyone else thinks about this decision. The phrase you're trying to use is couldn't care less. Think about it for a second, try to parse it. In any case, if you're going to be surly when people who know more than you

Re: Perform selector on thread

2008-03-24 Thread John C. Randolph
On Mar 24, 2008, at 4:19 AM, Eddy Hatcher wrote: Hi, I am detaching a selector A on a separate thread in another class. In this selector I am calling another selector B in the same class using [self performSelector:@selector(B)]; Which thread will this selector B be run on? The main, or

Re: mysterious crash in [NSCell menu]

2008-03-05 Thread John C. Randolph
On Mar 5, 2008, at 5:45 AM, Hendrik Schreiber wrote: a customer of mine experiences a crash that I cannot reproduce and that I have no idea where its coming from. He is trying to export some photos from iPhoto using our export plugin (iP2F) and at some point always gets a Bus Error. I

Re: BezierPath issues

2008-02-25 Thread John C. Randolph
Check out the lasso style crop maker here: http://developer.apple.com/samplecode/Cropped_Image/index.html -jcr ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the