CPU utilization in Snow Leopard

2009-09-25 Thread Shashanka L
Hello, 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 anybody observed the above said issues

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread BJ Homer
> Rick, > > You could also use: > NSBundle pluginBundle = [NSBundle bundleWithPath: fullPath]; > > This will return an NSBundle object as your require or nil if fullPath does > not identify an accessible bundle directory. So... > if ( pluginBundle == nil ) ... then it is not a valid bundle. > > Thi

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Brad Goss
Rick, You could also use: NSBundle pluginBundle = [NSBundle bundleWithPath: fullPath]; This will return an NSBundle object as your require or nil if fullPath does not identify an accessible bundle directory. So... if ( pluginBundle == nil ) ... then it is not a valid bundle. You will also wa

Re: login items hide box

2009-09-25 Thread Rick C.
thank jerry i'll look at your project. the only issue i'm having is in leopard so i'll definitely have to do something that works there. i'll post back, rick From: Jerry Krinock To: cocoa dev Sent: Saturday, September 26, 2009 2:45:38 AM Subject: Re: logi

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Gregory Weston
Rick Mann wrote: On Sep 25, 2009, at 17:15:45, Peter Ammon wrote: On Sep 24, 2009, at 8:09 PM, Jens Alfke wrote: On Sep 24, 2009, at 6:41 PM, Rick Mann wrote: I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? -[NSWorks

Re: How to implement IB-like Inspector Palette?

2009-09-25 Thread Andy Lee
On Friday, September 25, 2009, at 10:20PM, "Andy Lee" wrote: >I suspect there are third-party libraries to do what you want -- I'm pretty >sure I've seen one or two tutorials somewhere. Took me a while to think of good words to Google for. "Collapsible" and "disclosure" seem to be good ones.

Re: Spotlight: obtain active query on app launch

2009-09-25 Thread Adam R. Maxwell
On Sep 25, 2009, at 7:29 PM, David Melgar wrote: Hello, If a spotlight query finds data in an application specific file, selecting that file will launch the unique application. How can the application determine the query that was in effect when it was launched? As a concrete example whe

Spotlight: obtain active query on app launch

2009-09-25 Thread David Melgar
Hello, If a spotlight query finds data in an application specific file, selecting that file will launch the unique application. How can the application determine the query that was in effect when it was launched? As a concrete example where I've seen it done, if spotlight finds a string

Re: How to implement IB-like Inspector Palette?

2009-09-25 Thread Andy Lee
On Friday, September 25, 2009, at 09:56PM, "Rick Mann" wrote: >What is the control at the top of the IB Inspector panel? Is it just >buttons arranged next to each other? > >I presume it's a tabless NSTabView for the content beneath. So one would think, but a little poking around with F-Script

Re: How to implement IB-like Inspector Palette?

2009-09-25 Thread Joar Wingfors
On 25 sep 2009, at 18.56, Rick Mann wrote: What is the control at the top of the IB Inspector panel? Is it just buttons arranged next to each other? It's probably either a NSSegmentedControl, a NSMatrix with NSButtonCells, or plain NSButtons. The content below the tabs at the top could

How to implement IB-like Inspector Palette?

2009-09-25 Thread Rick Mann
What is the control at the top of the IB Inspector panel? Is it just buttons arranged next to each other? I presume it's a tabless NSTabView for the content beneath. <> TIA, Rick___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do

Global Hotkeys in 64-bit mode

2009-09-25 Thread Tobias Zimmerman
I sent a longer message yesterday, but it apparently didn¹t get posted. I am looking for a way to implement global hotkeys in 64-bit mode. When I use the method described here: http://unsanity.org/archives/45.php I am having a problem with the EventHotKeyRef that is registered not matching th

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Rick Mann
On Sep 25, 2009, at 17:15:45, Peter Ammon wrote: On Sep 24, 2009, at 8:09 PM, Jens Alfke wrote: On Sep 24, 2009, at 6:41 PM, Rick Mann wrote: I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? -[NSWorkspace isFilePack

Re: [__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!

2009-09-25 Thread Charles Srstka
On Sep 25, 2009, at 12:38 PM, Ben Trumbull wrote: In summary, the existence of fast enumeration does nothing for existing enumeration technologies and if you have to support 10.4 (as I do) you simply can't use it unless you fork your code. My solution, in the few cases where performance is para

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Peter Ammon
On Sep 24, 2009, at 8:09 PM, Jens Alfke wrote: On Sep 24, 2009, at 6:41 PM, Rick Mann wrote: I'm scanning a directory for plugins for my app. Given a path, what's the right way to tell if it's a path to a bundle? -[NSWorkspace isFilePackageAtPath:]. Actually, bundles are often packages

Re: Suggestions for debugging “EXC_BAD _ACCESS” [SOLVED]

2009-09-25 Thread Randall Meadows
On Sep 25, 2009, at 5:46 PM, Bob Barnes wrote: Kyle/Nick/Greg, Thank you guys. Took a little digging but the combination of NSZombie & instruments object allocation did the job. After years working with Java I find myself tripping over memory management issues much too often. I had all

Re: Disappearing NSStatusItem

2009-09-25 Thread Jacob Schwartz
Yeah, I threw in a release statement after and it didn't do anything different. When I read your reply, I thought what Bill said, that garbage collection was different from release/retain statements. -Jake Schwartz On Sep 25, 2009, at 7:33 PM, Bill Bumgarner wrote: On Sep 25, 2009, at 4:3

Re: Suggestions for debugging “EXC_BAD _ACCESS” [SOLVED]

2009-09-25 Thread Graham Cox
On 26/09/2009, at 9:46 AM, Bob Barnes wrote: I'm concluding (perhaps incorrectly) that using buttonWithType: doesn't grant 'object ownership' in the same way that alloc does. I'd say that was true, since 'buttonWithType:' doesn't contain the words 'new', 'alloc', 'create', 'retain' or '

Re: Suggestions for debugging “EXC_BAD_ ACCESS” [SOLVED]

2009-09-25 Thread Kyle Sluder
On Fri, Sep 25, 2009 at 4:46 PM, Bob Barnes wrote: >    Thank you guys. Took a little digging but the combination of NSZombie & > instruments object allocation did the job. After years working with Java I > find myself tripping over memory management issues much too often. I had > allocated a UIBu

Re: Suggestions for debugging “EXC_BAD _ACCESS” [SOLVED]

2009-09-25 Thread Bob Barnes
Kyle/Nick/Greg, Thank you guys. Took a little digging but the combination of NSZombie & instruments object allocation did the job. After years working with Java I find myself tripping over memory management issues much too often. I had allocated a UIButton using buttonWithType: and th

Re: Disappearing NSStatusItem

2009-09-25 Thread Bill Bumgarner
On Sep 25, 2009, at 4:30 PM, BravoBug Software wrote: Make sure you're properly -retain'ing it. Just because you have an ivar pointing to it doesn't mean it will stick around after GC/autorelease pool releases stuff. You'll need to explicitly -retain the NSStatusItem since NSStatusBar does not.

Re: Disappearing NSStatusItem

2009-09-25 Thread BravoBug Software
Make sure you're properly -retain'ing it. Just because you have an ivar pointing to it doesn't mean it will stick around after GC/autorelease pool releases stuff. You'll need to explicitly -retain the NSStatusItem since NSStatusBar does not. On Fri, Sep 25, 2009 at 11:21 AM, Jacob Schwartz wrote

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Sean McBride
On 9/25/09 12:24 PM, Jens Alfke said: >> So while you should absolutely do as Jens says, >> you should additionally set the bundle bit for packages you create. >> See >> 'man SetFile'. SetFile -a B /path/to/package. > >Sounds like good advice, but SetFile is a command-line tool, not an >API. The

Re: Parsing error in NSEvent?

2009-09-25 Thread slasktrattena...@gmail.com
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             = NX_SUBTYPE_MOUSE_TOUCH // FAILS HERE >> #endif >> }; >> #endif >> >> What's

Re: Suggestions for debugging “EXC_BAD _ACCESS”

2009-09-25 Thread Greg Parker
On Sep 25, 2009, at 12:14 PM, Bob Barnes wrote: If I'm reading this correctly, not a given by any means, Core Foundation is trying to get the retain count for an object, possibly a CALayer, where the reference pointer is no longer valid, but how do I determine what object? I've tried runnin

Re: Suggestions for debugging “EXC_BAD _ACCESS”

2009-09-25 Thread Nick Zitzmann
On Sep 25, 2009, at 1:14 PM, Bob Barnes wrote: If I'm reading this correctly, not a given by any means, Core Foundation is trying to get the retain count for an object, possibly a CALayer, where the reference pointer is no longer valid, but how do I determine what object? Use Instruments

Re: Parsing error in NSEvent?

2009-09-25 Thread Nick Zitzmann
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 = NX_SUBTYPE_MOUSE_TOUCH // FAILS HERE #endif }; #endif What's up with this and is there a way to fix it? NX_SUBTYPE_MOUSE_TOUCH shou

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Jens Alfke
On Sep 25, 2009, at 8:52 AM, Sean McBride wrote: So while you should absolutely do as Jens says, you should additionally set the bundle bit for packages you create. See 'man SetFile'. SetFile -a B /path/to/package. Sounds like good advice, but SetFile is a command-line tool, not an API

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Jens Alfke
On Sep 25, 2009, at 12:12 PM, Rick Mann wrote: LSTypeIsPackage Shouldn't that be true, not false? —Jens___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the li

Re: Suggestions for debugging “EXC_BAD_ ACCESS”

2009-09-25 Thread Kyle Sluder
Run with NSZombieEnabled=YES, or just use the Zombies Instruments template (ships with Xcode 3.2). --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the mod

Re: Displaying characters from the 'Unicode Symbols' font ?? (Solved)

2009-09-25 Thread Anders Lassen
Thanks everyone for helping. This solved my problem on how to handle characters outside the 16 bits range. Anders Lassen On Sep 25, 2009, at 8:57 PM, Aki Inoue wrote: The Unicode values beyond 16bit range are represented with a pair of UTF-16 characters in U+D800 ~ U+DFFF. See relevant

Suggestions for debugging “EXC_BAD_ACCES S”

2009-09-25 Thread Bob Barnes
all, My iPhone app has a UIView subclass that uses a number of CALayer objects. In normal operation the app works fine, but in low memory conditions (either real or simulated) I'm getting a "EXC_BAD_ACCESS" failure and I suspect it's related to my use (or misuse) of CALayer's. I've be

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Rick Mann
On Sep 25, 2009, at 02:25:30, Mike Abdullah wrote: I would read up on UTIs. Get the type of each file and see if it conforms to what you require. I have what I hope is a reasonably informative post here: http://www.mikeabdullah.net/utis_diagram/ Note how there is a com.apple.plugin type. If

Parsing error in NSEvent?

2009-09-25 Thread slasktrattena...@gmail.com
Hi, First: I'm not able to get online in 10.6 just yet and so haven't been able to read the new docs, in case this is something really obvious. Problem: I've got a screen saver that no longer runs on 10.6, System Preferences tells me. So I launched Xcode in order to try and figure out why, but di

Re: Quartz 2D or Core Animation?

2009-09-25 Thread douglas welton
Gabriel, The quick answer is use both. The two are not mutually exclusive. Also, don't worry about CPU usage until you built v1.0 of your project. Then, go back and the performance tools to optimize. regards, douglas On Sep 25, 2009, at 12:17 PM, Gabriel Zachmann wrote: I am still confu

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Aki Inoue
The Unicode values beyond 16bit range are represented with a pair of UTF-16 characters in U+D800 ~ U+DFFF. See relevant items in for the definitions. There are several ways to insert UTF-32 values into NSString. Doug mentioned some. The easiest is to use th

Re: login items hide box

2009-09-25 Thread Jerry Krinock
On 2009 Sep 24, at 06:25, Rick C. wrote: so i do need to update my code. but i'll be on the lookout for potential LSSharedFileList issues. thank you! Just to clarify, unless Apple has silently fixed the bug in 10.6 and you're using 10.6, I expect that you will see the same issue after u

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread James Walker
Anders Lassen wrote: But still, I can not see, how this solve my problem getting characters outside the unicode 16 bits range into a NSString. If these are a few specific characters, you can look them up in the Character Viewer window to convert them to UTF-16 pairs. For example, if you loo

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
I have tried this but gave up, because I did not now of surrogate pairs. But I will try again. Anders Lassen On Sep 25, 2009, at 8:27 PM, Douglas Davidson wrote: On Sep 25, 2009, at 11:18 AM, Anders Lassen wrote: But still, I can not see, how this solve my problem getting characters outsi

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
Hi Kyle, I will try to get the glyph name somewhere on the unicode website. Instead of the methods you suggest I will use: NSGlyph name = [font glyphWithName:@"summation"]; Thanks. Anders Lassen On Sep 25, 2009, at 7:39 PM, Kyle Sluder wrote: On Fri, Sep 25, 2009 at 10:34 AM, Anders

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Douglas Davidson
On Sep 25, 2009, at 11:18 AM, Anders Lassen wrote: But still, I can not see, how this solve my problem getting characters outside the unicode 16 bits range into a NSString. NSString is conceptually UTF-16, which means that characters outside the BMP are represented using surrogate pairs.

Disappearing NSStatusItem

2009-09-25 Thread Jacob Schwartz
Hello again, After making headway on my first cocoa app, I have run into an issue. I have created a NSStatusItem in my class called Application.m. When I run, the icon appears in my menubar but then disappears and becomes ineligable to click. I read something somewehere about thr garbage

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
Hi, Thanks this was helpful. Now I can drop _defaultGlyphForChar for a better solution. But still, I can not see, how this solve my problem getting characters outside the unicode 16 bits range into a NSString. Anders Lassen On Sep 25, 2009, at 8:03 PM, Douglas Davidson wrote: On Sep

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Douglas Davidson
On Sep 25, 2009, at 10:34 AM, Anders Lassen wrote: I am trying to display them in a custom NSView that displays math. Of course not all, at the same time, but single characters when needed in a math formula drawing. For unicode characters in the 16 bits range I use the following code: N

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Steve Christensen
Is there some reason why you can't use the color picker to specify a color+alpha value? It would save you a bunch of work in duplicating existing system functionality. On Sep 24, 2009, at 11:20 PM, Symadept wrote: Hi Graham, Yes. But do you have any other ways to handle this. I want somet

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Kyle Sluder
On Fri, Sep 25, 2009 at 10:34 AM, Anders Lassen wrote: > I am trying to display them in a custom NSView that displays math. Of course > not all, at the same time, but single characters when needed in a math > formula drawing. Sounds like you're subverting the Cocoa text system. Not a good idea.

re: Re: [__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!

2009-09-25 Thread Ben Trumbull
In summary, the existence of fast enumeration does nothing for existing enumeration technologies and if you have to support 10.4 (as I do) you simply can't use it unless you fork your code. My solution, in the few cases where performance is paramount, has been to essentially roll my own fast enum

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
On Sep 25, 2009, at 7:18 PM, Kyle Sluder wrote: What are you trying to do? Display them in a grid like the Characters palette does? Or typeset them like Font Book does? Or something else? --Kyle Sluder Hi Kyle, I am trying to display them in a custom NSView that displays math. Of cour

Re: Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Kyle Sluder
What are you trying to do? Display them in a grid like the Characters palette does? Or typeset them like Font Book does? Or something else? --Kyle Sluder ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mod

Displaying characters from the 'Unicode Symbols' font ??

2009-09-25 Thread Anders Lassen
Hi, Recently, I installed the 'Unicode Symbols' font. I would like to diplay all characters in this font. The problem is, that I do not know how to handle the characters outside the 16 bits range. For instance the: Mathematical Alfanumerics Symbols in the range 1D400..1D7FF. Any suggestio

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Rick Mann
On Sep 25, 2009, at 08:52:40, Sean McBride wrote: On 9/25/09 8:12 AM, Jens Alfke said: Thanks Jens. If I create a custom extension for my plugins (not even sure I can do that), will this still work? Yup, as long as you declare the extension properly in your Info.plist and indicate that it's

Re: Best way to implement drag and drop for multiple types of nstableview

2009-09-25 Thread I. Savant
On Sep 25, 2009, at 9:25 AM, Paul Bruneau wrote: I have used mmalc's DNDArrayController class from his Bookmarks example code to implement drag and drop for one of my NSTableViews. Of course it works great. But now I would like to set up a couple other table views with other types of data

Quartz 2D or Core Animation?

2009-09-25 Thread Gabriel Zachmann
I am still confused as to whether I should use Core Animation or Quartz 2D. Basically, the task I would like to do is this: - draw two images with alpha blending in a window (actually, a screen saver window) - grow and shrink the images at 30 frames/sec - use as little CPU as possible! Coul

Re: Subclass of NSView not responding to mouseDown event

2009-09-25 Thread Mike Abdullah
On 25 Sep 2009, at 15:03, Paul Buxton wrote: Hi guys. I am working though the book 'Learning Cocoa with Objective- C 2nd edition and have reached the Dot View example. It is a simple app that should demonstrate responding to mouse events. Apart from having to cope with the difference between

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Sean McBride
On 9/25/09 8:12 AM, Jens Alfke said: >> Thanks Jens. If I create a custom extension for my plugins (not even >> sure I can do that), will this still work? > >Yup, as long as you declare the extension properly in your Info.plist >and indicate that it's a bundle. Of course that requires that your I

Re: NSTableView Drag & Drop as a string

2009-09-25 Thread Todd Heberlein
Solved it! ... But now I want to create a string representation of the object, add it to the pasteboard as well, and then when the object is dragged to something like an email, the string representation of the object is written in. The problem was that I was trying to do a cross-applicati

Subclass of NSView not responding to mouseDown event

2009-09-25 Thread Paul Buxton
Hi guys. I am working though the book 'Learning Cocoa with Objective-C 2nd edition and have reached the Dot View example. It is a simple app that should demonstrate responding to mouse events. Apart from having to cope with the difference between the version of X-Code the book was developed with, a

Re: Remove NSTableView Default Selection

2009-09-25 Thread John McIntosh
Perfect, thank you! I have the table bound to a core data source and did not know about the "avoid empty selection" option in the controller. Unckecking that box took care of it. John On Thu, Sep 24, 2009 at 10:12 PM, Jens Alfke wrote: > > On Sep 24, 2009, at 5:07 PM, John McIntosh wrote: > >> I

Re: [__NSFastEnumerationEnumerator nextObject] unexpectedly not very fast!

2009-09-25 Thread James Bucanek
Graham Cox wrote (Thursday, September 24, 2009 6:10 PM +1000): I thought that NSEnumerator was implemented in terms of fast enumeration "underneath" - the docs seem to imply that, as does the existence of __NSFastEnumerationEnumerator private class. It may be still

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Jens Alfke
On Sep 25, 2009, at 3:02 AM, Florian Soenens wrote: http://www.google.com/search?client=safari&rls=en-us&q=cocoa+get+pixel+rgb+value&ie=UTF-8&oe=UTF-8 In this case it might be better to check http://lmgtfy.com/?q=cocoa+get+pixel+rgb+value first. One of my favorite references in these sorts

Re: Remove NSTableView Default Selection

2009-09-25 Thread Corbin Dunn
On Sep 24, 2009, at 8:12 PM, Jens Alfke wrote: On Sep 24, 2009, at 5:07 PM, John McIntosh wrote: I assumed that I could send the same deselectAll message in either an awakeFromNib function or applicationDidFinishLaunching. However, neither of these clears the selection. Make sure you've ch

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Jens Alfke
On Sep 24, 2009, at 9:51 PM, Rick Mann wrote: Thanks Jens. If I create a custom extension for my plugins (not even sure I can do that), will this still work? Yup, as long as you declare the extension properly in your Info.plist and indicate that it's a bundle. —Jens__

Scrolling a NSTextField

2009-09-25 Thread JECKER Frédéric
Hi, I have an non-editable/selectable NSTextField which content is set programatically (and the field's layout attribute is set to "Scroll"). Now when the field is filled, the overflow text is not displayed despite the "Scroll" attribute. When turning the fied selectable/editable this works fine :

Re: Advice on debugging a GC related crash

2009-09-25 Thread Bill Bumgarner
On Sep 25, 2009, at 4:32 AM, Harry Jordan wrote: Thread 3 Crashed: Dispatch queue: Garbage Collection Work Queue 0 com.apple.CoreFoundation 0x95c6c393 __CFTypeCollectionRelease + 83 1 com.apple.CoreFoundation 0x95c68eb8 __CFBasicHashStandardCallback + 296 2 com.apple.Cor

proper technique for CoreData SQLite fetch with sort descriptors

2009-09-25 Thread Jim Thomason
First off, I'll say that I'm trying to maintain Tiger compatibility in my app, so if anyone tries to duplicate this on Leopard or Snow Leopard, they may not have any luck. I have an NSArrayController bound to a set of objects in an SQLite CoreData store. The NSArrayController by default has severa

Best way to implement drag and drop for multiple types of nstableview

2009-09-25 Thread Paul Bruneau
Hi- I have used mmalc's DNDArrayController class from his Bookmarks example code to implement drag and drop for one of my NSTableViews. Of course it works great. But now I would like to set up a couple other table views with other types of data. I can re-use my DNDArrayController, but t

Advice on debugging a GC related crash

2009-09-25 Thread Harry Jordan
I've just released my first application, and despite the best efforts of me and an admitedly small group of beta testers it seems that a crashers slipped through. So far this one has only effected 1 user out of maybe 500: OS: 10.6.1 Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Codes

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Florian Soenens
http://www.google.com/search?client=safari&rls=en-us&q=cocoa+get+pixel+rgb+value&ie=UTF-8&oe=UTF-8 Florian. On 25 Sep 2009, at 09:12, Symadept wrote: Hi Graham, I tried to display the RGB spectrum as an image in the view. How can I pick particular pixel color from that image. Does it make s

Re: Subview drawn with reverted order

2009-09-25 Thread Mike Abdullah
On 25 Sep 2009, at 08:26, gMail.com wrote: Thanks to all of you. Anyway, I "must" compile for Tiger, so how can I workaround this trouble? I thought to programmatically move the subviews to the right position. Am I right? No. For Tiger and earlier, overlapping views are not supported. You

Re: Correct way to tell if a path is to a .bundle?

2009-09-25 Thread Mike Abdullah
I would read up on UTIs. Get the type of each file and see if it conforms to what you require. I have what I hope is a reasonably informative post here: http://www.mikeabdullah.net/utis_diagram/ Note how there is a com.apple.plugin type. If you're using a custom format for your plug-ins (and

Re: NSTableView Drag & Drop as a string

2009-09-25 Thread Mike Abdullah
You haven't declared ownership of the pasteboard, so I imagine the system is somewhat confused. Fairly sure you need to do: [pboard declareTypes:[NSArray arrayWithObject:NSStringPboardType] owner:self]; [pboard setString:str forType:NSStringPboardType]; On 25 Sep 2009, at 02:58, Todd Heberl

Re: App Crashing on a second AppleScript call

2009-09-25 Thread Dave Keck
Crashes involving autorelease pools are symptoms of memory management bugs in your code. Check out NSZombieEnabled. ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the m

App Crashing on a second AppleScript call

2009-09-25 Thread Steve Cronin
Folks; I have an app that receives AppleScript calls App passes Clang with no warnings; using XC 3.2 w/ 10.6SDK The call is made successfully and performs beautifully -- the first time! Everything works just as intended. The second script call is processed by the app but crashes immediately

CustomComboboxCell not displaying the selected text

2009-09-25 Thread Symadept
Hi, I have designed one combobox with CustomComboBoxCell set from the Interface Builder and trying to Change the Complete rectangle with my own image using drawWithFrame. Once I choose the any item from the DropDownList it is not displaying the text immediately in the Textfield of the ComboBox. Bu

Re: Subview drawn with reverted order

2009-09-25 Thread gMail.com
Thanks to all of you. Anyway, I "must" compile for Tiger, so how can I workaround this trouble? I thought to programmatically move the subviews to the right position. Am I right? Regards -- LL >> It seems that the Front-Back drawing order of the subviews has been >> reverted. How to fix this probl

Re: How to create a control just as RGB Sphere and Alpha bar

2009-09-25 Thread Symadept
Hi Graham, I tried to display the RGB spectrum as an image in the view. How can I pick particular pixel color from that image. Does it make sense? -Mustafa On Fri, Sep 25, 2009 at 2:29 PM, Graham Cox wrote: > tsk, tsk - lazy, lazy. > > http://mattgemmell.com/2008/12/08/what-have-you-tried > > h