Re: Parsing error in NSEvent?

2009-09-26 Thread Nick Zitzmann
On Sep 26, 2009, at 4:05 AM, slasktrattena...@gmail.com wrote: Base SDK was indeed set to 10.5. I changed it to 10.6, cleaned the project, ran preprocess and relinked the Foundation and AppKit frameworks, yet still got the same build error. Any other ideas? The preprocess step was recommended

Re: Subclass of NSView not responding to mouseDown event

2009-09-26 Thread Paul Buxton
Mike, Thanks that sorted the problem! I had used the debugger and was hitting breakpoints in the handlers for setcolor and setradius fine but was not hitting my breakpoint in the mouseDown handler. I guess the incorrect message usage was screwing things up in some way. At least I now know that if I

Re: CPU utilization in Snow Leopard

2009-09-26 Thread Joar Wingfors
On 25 sep 2009, at 23.14, Shashanka L wrote: I am working with Snow Leopard 10.6.1. And I have observed the difference in CPU usage (high compared to Leopard) for my application. I am using mainly the Quicktime, sqlite3 calls. Also found some memory leaks in Foundation class methods. Have

Re: Parsing error in NSEvent?

2009-09-26 Thread slasktrattena...@gmail.com
On Fri, Sep 25, 2009 at 9:46 PM, slasktrattena...@gmail.com wrote: > On Fri, Sep 25, 2009 at 9:25 PM, Nick Zitzmann wrote: >> >> On Sep 25, 2009, at 1:00 PM, slasktrattena...@gmail.com wrote: >> >>> #if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6 >>>   NSTouchEventSubtype             =

Re: OR compositing operation?

2009-09-26 Thread Oleg Krupnov
Thanks! It seemed exactly what I need but I've found that it doesn't work as expected. The interpolated semi-transparent parts of the rendered text still appears brighter than it should. Namely, consider drawing white text on black background, and then drawing the same white text one more time ov

Getting glyphs for surrogate characters ??

2009-09-26 Thread Anders Lassen
Hi, I have a problem generating glyph for surrogate characters. I have considered not to use glyphs directly, but since I need very fine control of the drawing of the glyph, this is a good solution for me. Having a glyph gives direct acces to both the boundingbox, the path and the advancem

Re: Advice on debugging a GC related crash

2009-09-26 Thread Harry Jordan
Wow. Thank you Bill. That's ore than I could have hoped for. You'r right of course, there was some unexpected code getting loaded: 0x1d3000 - 0x1dbffc +com.sweetpproductions.SafariCookies 0.8 (0.8) <9739F20D-A5C1-015A-FB1F-B0F66CD64AB9> /Library/InputManagers/Safari Cookies/Safari Cookies

Re: Advice on debugging a GC related crash

2009-09-26 Thread Bill Bumgarner
On Sep 26, 2009, at 10:39 AM, Harry Jordan wrote: Wow. Thank you Bill. That's ore than I could have hoped for. You'r right of course, there was some unexpected code getting loaded: 0x1d3000 - 0x1dbffc +com.sweetpproductions.SafariCookies 0.8 (0.8) <9739F20D-A5C1-015A-FB1F-B0F66CD64AB9> /L

NSMenuItem & NSRuleEditor

2009-09-26 Thread Jon Hull
I must be missing something in the documentation. I am trying to populate a Rule Editor with choices from a plist file. The plan is to create and return an NSMenuItem for each string stored in the corresponding spot in a plist. Here is what IS working: • I can get the NSRuleEditor to di

Re: NSMenuItem & NSRuleEditor

2009-09-26 Thread Andy Lee
On Sep 26, 2009, at 4:09 PM, Jon Hull wrote: • I can get the NSRuleEditor to display menuItems from a popup loaded from the XIB (as in the example I found) • I can load in the plist and confirm that the resulting dictionary/ array structure as well as the return values for the #ofChildren m

NSURLConnection upload to iDisk works with iPhone OS 2.x but fails on 3.x

2009-09-26 Thread Sergey Shapovalov
Hello. I'm using a very simple code snippet to upload a small file to my MobileMe iDisk. The problem is that it perfectly works with iPhone OS 2.2.1, but fails on 3.0. Now I'm trying to figure out whether that's a bug in iPhone OS 3.0, or I am doing something wrong and 2.2.1 is just more

Re: NSMenuItem & NSRuleEditor

2009-09-26 Thread Jon Hull
It is called. I just figured out a workaround... apparently if I pass it a string NSRuleEditor will create a menuItem for me. Just tested and it is working now. The documentation is so bad on this area, maybe I will post some example code when I get it all worked out... Thanks for your h

Re: Parsing error in NSEvent?

2009-09-26 Thread slasktrattena...@gmail.com
On Sat, Sep 26, 2009 at 6:10 PM, Nick Zitzmann wrote: > > On Sep 26, 2009, at 4:05 AM, slasktrattena...@gmail.com wrote: > >> Base SDK was indeed set to 10.5. I changed it to 10.6, cleaned the >> project, ran preprocess and relinked the Foundation and AppKit >> frameworks, yet still got the same b

Re: Parsing error in NSEvent?

2009-09-26 Thread Nick Zitzmann
On Sep 26, 2009, at 3:22 PM, slasktrattena...@gmail.com wrote: No, sorry, I'm not familiar with this feature. I simply selected Preprocess from the the Build menu, but didn't get any visual response. Where do I check what headers are included? When you choose Preprocess, you should get a wind

Pain-Free Core Data derived properties (pre-alpha)

2009-09-26 Thread Johannes Fahrenkrug
Hi! I attended a small Mac conference in Frankfurt today and was inspired by a talk given by Frank Illenberger who talked about derived properties in Core Data. Unfortunately he couldn't give out the code for the cool stuff he was showing. So I sat down right away to implement it myself. You can f

Re: Subclassing NSUserDefaultsController

2009-09-26 Thread Thomas Bauer
Hi! Thanks for your response. Sorry, I did not point out clearly enough that in my case the code would run with root privileges. Thanks for the pointer to EUID. I was not aware of that... and that might be a solution. Independently - it still puzzles me that it does not seem to be possibl

Re: OR compositing operation?

2009-09-26 Thread Paul M
This is a multi-pass operation - you wont find a single blend mode that will do this in any simple manner. First question: Are you doing this all in one hit, or sequentially, ie, rendering the first layer of text then adding subsequent layers later? Second question: is the text all the same colou

Creating a radar sweep effect

2009-09-26 Thread John Cebasek
Hi All: I'm wondering what the best way to create a radar sweep effect is? (Like in old war movies?) I was trying to create a shadow effect but that didn't look good as when the sweep line was at 0, 90, 180 or 270 degrees, the shadow wasn't very visible. And even using the shadow, it wasn

Frameworks in red

2009-09-26 Thread Erg Consultant
When I drag a bunch of frameworks from one Xcode project to another, their names are listed in red in the destination project. I know they exist because the original project works fine and I can do a "Reveal In Finder" to verify that they exist? The project being dragged *to* however crashes on

Spotlight index all data?

2009-09-26 Thread David Melgar
I confess to being a little confused about Spotlight. The docs seem to talk exclusively about talk about searching metadata. But what about the data itself? When I use Spotlight, it finds references within the content of documents not just their metadata. When writing an importer, what meta

Re: Creating a radar sweep effect

2009-09-26 Thread Graham Cox
Hi John, The difficulty with this kind of display is simulating the persistence of the old cathode-ray tubes in a realistic way. Just drawing a shadow is unlikely to work, though it might help get you some way by creating the glow caused by scattering. One possibility is to use OpenGL. It

Re: Frameworks in red

2009-09-26 Thread Graham Cox
Files shown in red can't be found at the path given. If you do a Get Info on the file you can correct the path. If it's a framework shared by several projects it's worth putting it in a location that won't move and can be reached by them all. You might also want to look into setting up a co