I've put an NSLevelIndicator into a panel, configured it to show
iTunes-style star ratings, and made it editable. Unfortunately it
doesn't draw the dots where stars would go; so if the current rating
is zero stars, the control is completely invisible. This presents a UI
problem, as the user
On 23 Mar '08, at 10:04 PM, charlie wrote:
I could care less what anyone else thinks about this decision.
I simply want to know how to suppress the warning.
That statement gives the impression of treating the members of this
mailing list as though they were some kind of natural-language ans
Ah, that looks perfect! Thanks! I'll try it out tomorrow.
- Brian
On Mon, 24 Mar 2008 01:46:27 -0400, Jens Alfke <[EMAIL PROTECTED]> wrote:
On 23 Mar '08, at 7:26 PM, Brian Kendall wrote:
I'm trying to write a preference pane that allows the user to
specify a hotkey.
Take a look at Nath
Sorry - perhaps I wasn't clear enough.
This is a preference pane for a background application, which actually
registers the hot key with the system. The preference pane just needs to
have some kind of button or text field so that the user can input *which*
hotkey they want the background app to
"Right... Sorry, I misunderstood. So, you want to continue using your
flawed coding style, but not be warned about it? Got it."
Exactly. And.. I'm fully admitting that this is a goofy workaround,
but I want to try it nonetheless.
"If it's really important to you, send an incident to DTS
On 23 Mar '08, at 7:26 PM, Brian Kendall wrote:
I'm trying to write a preference pane that allows the user to
specify a hotkey.
Take a look at Nathan Day's "NDHotKeyEvent" utility code:
http://homepage.mac.com/nathan_day/pages/source.xml
The description is:
This is a class for providi
Right... Sorry, I misunderstood. So, you want to continue using your
flawed coding style, but not be warned about it? Got it.
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.
Otherwise, I'd ask on the
Thanks Chris,
I am going to look into creating a category. Its not something I have
ever done, but now I have some bedtime reading for tonight.
http://developer.apple.com/documentation/Cocoa/Conceptual/ObjectiveC/Articles/chapter_4_section_1.html
Would you suggest a category that extends an NSMa
On Mar 24, 2008, at 1:11 AM, Daniel Jalkut wrote:
Look in your build settings. Turn off the "Hidden Local Variables"
warning:
Whoops ! Looks like I was wrong about that. Doesn't actually disable
the particular instance-var hiding warning.
So maybe even the compiler refuses to let you turn
On Mar 24, 2008, at 1:04 AM, charlie wrote:
This is why I didn't want to reveal **why** I want to suppress this
warning. Because everyone feels compelled to pitch in their 2 cents
on this tangent subject which has already been explored and closed
on my end.
I could care less what anyone e
Hey Doug,
Thanks so much for your help. Un checking "Raises For Not Applicable
Keys" did the trick.
Take a look at DragAndDropOutlineEdit.zip
http://homepage.mac.com/matthol2/cocoa/page2/page2.html
The author has an NSTreeController extension that makes accessing the
"real" objects much easier.
It's not about extra characters I have to type. It just looks fugly to
me. It always has. And I'm not saying this solution is perfect. It's
ugly too. Just less ugly to my eyes. In fact, I may end up hating it
after this project.. but I want to at least try it once and see how I
feel abo
I didn't ask for advice.
I asked a simple question.
And it still stands.
- Chuck
On March 24, 2008, Sherm Pendley wrote:
On Sun, Mar 23, 2008 at 11:59 PM, charlie <[EMAIL PROTECTED]> wrote:
So, today I decided to try this for my next project...
- (void)setController:(id)controller
{
Thanks Jack and Shem for your counsel. For neary all of my code, I
have nice, straightforward retain-release pathways. The one that had
been giving me trouble is an oddball: I have a factory class that
generates an instance. That instance is bounced around handlers of a
state machine. Most
For example, the above could be rewritten as:
- (void)setController:(id)newController {
if (!controller) return;
controller = [newController retain];
I think the if (!controller) check was for the passed-in value, not
the instance variable, but there lies the confusion about using the
On Mon, Mar 24, 2008 at 12:16 AM, Jack Repenning <[EMAIL PROTECTED]>
wrote:
>
> The main thing you'll have to watch for: Objective-C 2.0 has garbage
> collection available, like Java and scripting languages you're
> familiar with, but it's off by default, and earlier Macs don't have
> it. You'll p
On Mar 21, 2008, at 2:36 PM, Sherm Pendley wrote:
In short, the fact that you need a means to track down your -retain
and
-release calls is indicative of a deeper problem. Examining the
retain count
will not only fail to solve that problem, but will also obfuscate
the issue
even further. You
On Sun, Mar 23, 2008 at 11:59 PM, charlie <[EMAIL PROTECTED]> wrote:
>
> So, today I decided to try this for my next project...
>
> - (void)setController:(id)controller
> {
> if (!controller)
> {
>return;
> }
> self->controller = [controller retain];
> }
>
> I works fine. But does not fix
On Mar 21, 2008, at 12:21 PM, Jeff LaMarche wrote:
As for books, I believe that a number of the stalwart Cocoa books,
such as Aaron Hillegas' are in the process of being revised for the
Leopard changes due out this year some time, but I don't think there
is anything yet available that deals
Chuck,
* You really shouldn't suppress these warnings
* If you use ObjC 2.0 properties you don't have to write those
accessors in the first place, and
* If you use ObjC 2.0 properties, you can use this form without
warnings:
self.foo = foo;
j o a r
On Mar 23, 2008, at 8:59 PM,
For years, I've been doing this:
- (void)setController:(id)_controller
{
if (!_controller)
{
return;
}
controller = [_controller retain];
}
It has always irked me having to work around namespace conflicts
between method args and instance variables.
So, today I decided to try this fo
Thanks for the considered reply, Jerry - much appreciated.
I hadn't thought of just using a global undo stack, and having tried
it, it's actually a pretty good solution. Obviously there are times
that the result of the undo targets a document other than the current
one and that can seem a b
I have been working with a layer-backed view hierarchy nested in an
NSScrollView. The layer-backed view is backed by a CAScrollLayer (to
get around the texture size limitation that causes the fade in effect
on the layer-backed view). If I am scrolled to the top of the
documentView in the
On Sun, Mar 23, 2008 at 11:36 PM, Samvel <[EMAIL PROTECTED]> wrote:
> That looks exactly as the functionality I was looking for.
> Thus, the whole task should be divided into next steps:
>
> 1. Set delegate for current *NSApp*.
> 2. In above delegate implement *-applicationShouldTerminate:* method
That looks exactly as the functionality I was looking for.
Thus, the whole task should be divided into next steps:
1. Set delegate for current NSApp.
2. In above delegate implement -applicationShouldTerminate: method and
return NSTerminateLater.
3. Say, this delegate (or some other object) rec
If you've rewritten your code to fix the conflict, you shouldn't be
getting the warning. What does "coded around the namespace conflict"
mean, exactly?
--
m-s
On 23 Mar, 2008, at 22:56, charlie wrote:
Thanks.
I understand the reason behind the warning.
I've coded around the namrspace co
On Sun, Mar 23, 2008 at 9:55 PM, Samvel <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I have defined class (say, Download) that uses NSURLConnection to
> download something from internet. My application is Cocoa with UI. I
> want to call:
>
> [Download cancel]
>
> and wait for notification from this class
Thanks.
I understand the reason behind the warning.
I've coded around the namrspace conflict.
Now I just want to suppress the warning.
- Chuck
On March 23, 2008, Andrew Farmer wrote:
On 23 Mar 08, at 19:29, charlie wrote:
How do I disable this warning?...
"local declaration of 'varn
FWIW, if you find yourself needing to do much more in the way of
distorting images, I'd recommend looking into OpenGL directly.
It's extremely fast since it goes straight to the hardware, and doing
something like "map an image to a trapezoid" is /very/ few lines of
code. Much simpler than trying
On 23 Mar 08, at 19:29, charlie wrote:
How do I disable this warning?...
"local declaration of 'varname' hides instance variable"
Use a different name for either the local variable or the instance
variable. This is a serious enough warning that I really wouldn't
recommend disabling it.
__
On 23 Mar 08, at 19:26, Brian Kendall wrote:
I'm trying to write a preference pane that allows the user to
specify a hotkey. Ordinarily I would override sendEvent in
NSApplication, but since it's a preference pane that's not possible
in this case since the System Preferences application is
How do I disable this warning?...
"local declaration of 'varname' hides instance variable"
- Chuck
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the moderators
I'm trying to write a preference pane that allows the user to specify a
hotkey. Ordinarily I would override sendEvent in NSApplication, but since
it's a preference pane that's not possible in this case since the System
Preferences application is already instantiated. Obviously this is
p
Hello,
Does anyone know of a convenient way to get the bounding rectangle of
the tab of an NSTabViewItem? I know I can get the size of the label
with sizeOfLabel:, but it looks like the _tabRect itself is private.
I was thinking I could use accessibilityAttributeValue: to retrieve
the NSA
On Mar 23, 2008, at 4:55 PM, Adam Gerson wrote:
A specific question:
It is always good to ask specific questions. "Is still broken in
10.5?" is not a very specific question, especially since there may be
a number of developers who are using it quite successfully in Mac OS X
10.4.
On 23 Mar '08, at 10:16 AM, John Engelhart wrote:
I put RegexKitLite together after helping some users with some
RegexKit problems, specifically word breaking Thai. After putting
together a quick and dirty wrapper around the ICU regex engine, I
realized I had most of the pieces for a ligh
Hi,
I have defined class (say, Download) that uses NSURLConnection to
download something from internet. My application is Cocoa with UI. I
want to call:
[Download cancel]
and wait for notification from this class once user quits application.
Reasoning: my Download class should cancel con
Hi, Adam,
I hesitate to present myself as an expert, but I've probably contributed to
the perception of broken-ness in 10.4, and I've received an awful lot of
help on this list, so I'll try to pay it forward:
My biggest gripe about outline views and tree controllers in 10.4 was that
it was difficu
I sent an email to the list earlier asking about CoreAnimation memory
use. I think I have that all resolved now, except for one memory usage
issue with CARenderer.
I am successfully rendering a layer tree that is never shown on the
screen with a CARenderer. I set up a pixel buffer, and then
I am having a problem with Cocoa bindings that I cannot figure out.
There is some object that is observing the value of another object. An
example for the relevant implementation of the classes is as follows:
@implementation SomeObject
- (id)initWithObject:
(AnotherObject*)object
{
self
On Mar 23, 2008, at 3:36 PM, Marco Cassinerio wrote:
Ok, but can my app be notified by such events related to any another
app?
If done through NSDistributedNotificationCenter or NSWorkspace's
special notification center, then yes. Otherwise, no. What exactly are
you trying to accomplish?
On Mar 22, 2008, at 9:03 AM, JanakiRam wrote:
I've used Authorization Services to
perform unload of Launch Daemon ( previlaged action ).
Authorization Services isn't meant to be used in the way you're using
it. You're using AuthorizationExecuteWithPrivileges to perform an
arbitrary operati
Herb Petschauer wrote:
It looks like DARegisterDiskDescriptionChangedCallback() can watch for
volume name changes if I pass it kDADiskDescriptionWatchVolumeName for
its watch parameter. Thanks.
It should be pointed out that if your goal is to get a warning that
some cached path you're tracki
A general question:
I have read a lot of discouraging posts on this list and out on the
blogs about the trio of NSTreeController, NSOutlIneView and CoreData.
Most of them come from the 10.4 era. Under 10.5 is this something that
is working better now?
A specific question:
A lot of the NSTreeContr
Hi All,
I've managed to do the above with NSAnimation, but I'm trying to do
the same using Core Animation.
AFAIK To hide a split view pane when the user clicks a button, you
need to set the frame's height/width to zero and move the divider when
the animation has finished. When using an i
On 2008 Mar, 23, at 14:52, James Stein wrote:
I'm tearing out my hear trying to figure this out,or find the
documentation
(if any) on how to do it.
Unfortunately, there's not too much documentation on the "mousing
around" stuff because (a) it's supposed to be "intuitively obvious"
and (b)
It looks like DARegisterDiskDescriptionChangedCallback() can watch for
volume name changes if I pass it kDADiskDescriptionWatchVolumeName for
its watch parameter. Thanks.
--
m-s
On 23 Mar, 2008, at 18:06, Herb Petschauer wrote:
Disk Arbitration Framework. There is some sort of rename call
Disk Arbitration Framework. There is some sort of rename callback you
can subscribe to (you'll have to search for it, sorry... Sunday and
all)
Cheers,
-H.
On 23/03/2008, Michael Watson <[EMAIL PROTECTED]> wrote:
> Does anyone know of a way to be notified when a mounted local volume
> is renamed
Does anyone know of a way to be notified when a mounted local volume
is renamed? The NSWorkspace mount notification isn't triggered when a
volume is renamed, but I thought I'd try it anyway, just to see before
posting. No dice. Ideas?
--
mikey-san
__
I'm tearing out my hear trying to figure this out,or find the documentation
(if any) on how to do it.
But it must be really simple.
Example:
In Interface builder, I have an NSOutlineView with
two columns, a column of NSTextFieldCell and
a column of NSButtonCell.
By changing the number of columns
Fair enough. I will keep these hints in mind, as well as Scott's
Applescript suggestion. On the bright side of things, it looks like I
have more than one option. That is always good. I am off to code up
the engine now, starting with File/Open.
Carsten
On 23/03/2008, Sherm Pendley <[EMAIL PROTECT
On Mar 23, 2008, at 10:17 PM, Sherm Pendley wrote:
On Sun, Mar 23, 2008 at 5:07 PM, Marco Cassinerio <[EMAIL PROTECTED]
> wrote:
where can I get the list of distributed notification's names?
I'm looking for notifications referring to events like:
application launch, active window/document cha
On Sun, Mar 23, 2008 at 5:08 PM, Carsten <[EMAIL PROTECTED]> wrote:
>
> Note that I am not planning to attack all this at once. I just want to
> make sane choices up front about how things would be done, skeleton it
> out, and then leave most of it for a later full implementation. I want
> to star
On Sun, Mar 23, 2008 at 5:07 PM, Marco Cassinerio <
[EMAIL PROTECTED]> wrote:
>
> where can I get the list of distributed notification's names?
I'm looking for notifications referring to events like:
> application launch, active window/document changed.
In general, lists and descriptions of not
The "Mac way" to do this is to make your app scriptable via AppleScript.
--
Scott Ribe
[EMAIL PROTECTED]
http://www.killerbytes.com/
(303) 722-0567 voice
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or mod
Running from both the GUI and commandline at the same time would be
rather unusual. I don't expect that heavy commandline batch users will
use the GUI app for anything but setting up some configuration files,
so it would be acceptable for the script-launch to detect that it was
running already, pri
Hi,
where can I get the list of distributed notification's names?
I'm looking for notifications referring to events like:
application launch, active window/document changed.
Thanks.
Marco.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Pleas
Unfortunately, not yet :( We've been getting mixed messages from
people @Apple on all things iPhone... think they were a little
overwhelmed by the response to the SDK.
Sent from my iPhone
On Mar 23, 2008, at 3:56 PM, Kevin Albrecht <[EMAIL PROTECTED]> wrote:
Ah, sorry. Where can this be d
Ah, sorry. Where can this be discussed? Is there a closed mailing
list for discussion of unreleased APIs?
Thanks,
Kevin
> I think you missed the memo. We're not to discuss the iPhone SDK on
> this list because its under NDA and this is a public list.
>
> On Sun, Mar 23, 2008 at 11:27 AM, Kevin
I think you missed the memo. We're not to discuss the iPhone SDK on
this list because its under NDA and this is a public list.
Sent from my iPhone
On Mar 23, 2008, at 2:27 PM, Kevin Albrecht <[EMAIL PROTECTED]> wrote:
How do you get the height of a UIToolbar? I am using the UIToolbar
simila
How do you get the height of a UIToolbar? I am using the UIToolbar
similar to the way it is used in the Cocoa Touch Toolbar project
included with the SDK. The bounds of the toolbar returns the bounds
of the entire window.
Thanks,
Kevin Albrecht
___
Co
On Mar 23, 2008, at 4:43 AM, Carsten wrote:
Ah, okay, I see now. My script will just launch the application
executable with a specific commandline that forces it into batch mode,
so the difference in functionality or convenience between a symlink to
a tool and a generated one-liner script (plus
HI Jen,
Thanks for the initial reply.
I've tried to unload my launch daemon from shell , it is unloading
without any error.
*$ sudo lauchctl unload -w
/Library/LaunchDaemon/com.mycompany.mydaemon.plist*
When i executed lauchctl without sudo , i got the same problem. I
guess lauc
I've just released what I'm calling 'RegexKitLite'. It targets a
different group of people than the full fledged RegexKit (http://regexkit.sourceforge.net/
).
I put RegexKitLite together after helping some users with some
RegexKit problems, specifically word breaking Thai. After putting
On 23 Mar '08, at 7:00 AM, JanakiRam wrote:
I'm developing a cocoa application which needs to unload my
Launch
Daemon for one particular requirement. I've used Authorization
Services to
perform unload of Launch Daemon ( previlaged action ). But couldn't
succeed
in this. I'm getting
Luca, I am sorry for being snippy. I automatically assumed you were
referring to an NSImage when all you said was image. Many many
apologies!!
Glenn has you on the right track :)
Again, good luck and sorry *blush*
Cathy
On Mar 23, 2008, at 3:10 PM, glenn andreas wrote:
On Mar 23, 2008
I think CIPerspectiveTransform is my perfect solution. Thanks Glenn
Andreas!
And thanks Cathy for the quick reply.
Il giorno 23/mar/08, alle ore 15:10, glenn andreas ha scritto:
On Mar 23, 2008, at 8:54 AM, Cathy Shive wrote:
On Mar 23, 2008, at 2:14 PM, Luca wrote:
Hello. Do you know how
On Mar 23, 2008, at 8:54 AM, Cathy Shive wrote:
On Mar 23, 2008, at 2:14 PM, Luca wrote:
Hello. Do you know how can I transform a rectangular image in a
trapezium?
Seriously?
You aren't going to be able to distort your bitmap like this with
NSImage and there is no ready-made CIFilter to
It seems no one had came across such a situation. Can any one from apple
help me ?
Please help me to solve this problem. Thanks in Advance.
-JanakiRam.
On 3/22/08, JanakiRam <[EMAIL PROTECTED]> wrote:
>
> Hi All,
>
>I'm developing a cocoa application which needs to unload my Launch
> Da
Seriously?
You aren't going to be able to distort your bitmap like this with
NSImage and there is no ready-made CIFilter to do this distortion
that I'm aware of. If I'm wrong about that, then that's the way to
go. But, I think you've gotta do your own pixel pushing for this one.
Explor
Hello. Do you know how can I transform a rectangular image in a
trapezium?
Thanks,
Luca.
___
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-
Thanks, that's cleared that up
>> Hi, I have just started learning Cocoa and I have been reading the
>> apple
>> tutorials but one thing they don't really explain is what is the
>> purpose of
>> a .m and .h for each class. This is probably a silly question but
>> coming
>> from a java im only us
On 23 Mar 08, at 03:28, Audun Frøysaa wrote:
Hello.
I need some help with different controllers.
You seem confused. Is this your first Cocoa project? If so, have you
run through the CurrencyConverter tutorial?
I have
mainController.h & .m
iTunesMainController.h & .m
I then tries to access
23 mar 2008 kl. 11.45 skrev Alex Handley:
Hi, I have just started learning Cocoa and I have been reading the
apple
tutorials but one thing they don't really explain is what is the
purpose of
a .m and .h for each class. This is probably a silly question but
coming
from a java im only used
Hi, I have just started learning Cocoa and I have been reading the apple
tutorials but one thing they don't really explain is what is the purpose of
a .m and .h for each class. This is probably a silly question but coming
from a java im only used to seeing one class file.
Happy Easter
Thanks
Ale
Hello.
I need some help with different controllers.
I have
mainController.h & .m
iTunesMainController.h & .m
I then tries to access a method in the iTunesMainController from the
mainController.
mainController.h
@class iTunesMainController;
@interface mainController : NSObject {
iTun
On 23/03/2008, Marcus <[EMAIL PROTECTED]> wrote:
> I agree. I would recommend /usr/local/bin if you're only targeting
> Leopard. Tiger and previous versions of Mac OS X does not come with /
> usr/local and doesn't have it in the user's path.
A-ha, I didn't know that! Hmm, that makes it a bit har
23 mar 2008 kl. 09.10 skrev Carsten:
/usr/bin should normally be for programs used by the system during
startup, if I understand correctly, and /usr/sbin for system programs
used after /usr has been mounted. /usr/local/bin really ought to be
the correct place for user scripts and programs.
I
/usr/bin should normally be for programs used by the system during
startup, if I understand correctly, and /usr/sbin for system programs
used after /usr has been mounted. /usr/local/bin really ought to be
the correct place for user scripts and programs.
I am not sure what the advantage of using an
79 matches
Mail list logo