Hi Graham,
Yes. But do you have any other ways to handle this.
I want something like this
I could be able to pick the color from the spectrum band and could change
the Alpha (This I can manage to some extent, Immediately I need to handle
the picking colour from the spectrum.)
Regards
Mustafa
tsk, tsk - lazy, lazy.
http://mattgemmell.com/2008/12/08/what-have-you-tried
http://catb.org/~esr/faqs/smart-questions.html
C'mon, get real. No-one's going to write your code for you. If you
can't find a free class somewhere, subclass NSView yourself. A
location -- RGB mapping is pretty
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 graham@bigpond.com wrote:
tsk, tsk - lazy, lazy.
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 problem?
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.
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
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
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
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
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
http://www.google.com/search?client=safarirls=en-usq=cocoa+get+pixel+rgb+valueie=UTF-8oe=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
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
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
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
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
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 : as
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.
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
On Sep 25, 2009, at 3:02 AM, Florian Soenens wrote:
http://www.google.com/search?client=safarirls=en-usq=cocoa+get+pixel+rgb+valueie=UTF-8oe=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 of
Graham Cox mailto:graham@bigpond.com 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
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 j...@mooseyard.com wrote:
On Sep 24, 2009, at 5:07 PM, John
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,
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
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
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
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!
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
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
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
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
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
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
On Fri, Sep 25, 2009 at 10:34 AM, Anders Lassen anders.las...@mac.com 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.
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
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:
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
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
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.
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
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
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
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
The Unicode values beyond 16bit range are represented with a pair of
UTF-16 characters in U+D800 ~ U+DFFF.
See relevant items in http://unicode.org/glossary/#S for the
definitions.
There are several ways to insert UTF-32 values into NSString.
Doug mentioned some.
The easiest is to use the
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
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
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.
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
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
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
On Sep 25, 2009, at 12:12 PM, Rick Mann wrote:
keyLSTypeIsPackage/key
false/
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
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
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
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
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
On Fri, Sep 25, 2009 at 9:25 PM, Nick Zitzmann n...@chronosnet.com 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
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 actual API
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
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
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
On Fri, Sep 25, 2009 at 4:46 PM, Bob Barnes toadf...@comcast.net 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
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
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
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
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
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
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
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
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.
inline: Screen shot 2009-09-25 at 18.45.18 .png
TIA,
Rick___
Cocoa-dev
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
On Friday, September 25, 2009, at 09:56PM, Rick Mann rm...@latencyzero.com
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
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
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
On Friday, September 25, 2009, at 10:20PM, Andy Lee ag...@mac.com 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
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?
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 je...@ieee.org
To: cocoa dev cocoa-dev@lists.apple.com
Sent: Saturday,
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
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.
This isn't
77 matches
Mail list logo