On Apr 18, 2008, at 9:58 PM, justin webster wrote:
I'm pretty sure I've got all objects alloc'd and released correctly.
this example is the broken one:
- (NSString *)myShellFunction:(NSString *)PID
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
NSTask
Is there a way to change the spacing of the images in an
IKImageBrowserView? In InterfaceBuilder?
How can I assign a right-click menu/contextual menu to an image
browser view? Connection a NSMenu with the menu-outlet in
InterfaceBuilder works for all of my views except the
I have a tableview representing the layers of a drawing application.
The tableview has several columns of checkboxes, some status columns
and an editable text column for the layer name. The rows of the
tableview are selectable (multiple selection) so they can be
reordered and cut, copied
Okay, thanks for your help Peter.
With best wishes, Stefan
Am 19.04.2008 um 01:04 schrieb Peter Ammon:
Yes, in Leopard, unified and non-unified windows are the same except
for some minor differences in the toolbar metrics, which you
found. :) The metric differences were left in for
Le 19 avr. 08 à 06:36, Benjamin Stiglitz a écrit :
As previously explained here, I'm handling hotkeys in my app via
custom code in order to work around some AppKit bugs.
How can I simulate the menu-title blink effect using Cocoa? In
Carbon, it's FlashMenuBar(menuID) but I don't see a
Hi Yann,
On Apr 19, 2008, at 10:51 AM, Yann Disser wrote:
Is there a way to change the spacing of the images in an
IKImageBrowserView? In InterfaceBuilder?
No, the only thing you can do to impact the cell-spacing is to use
setCellSize and give a non square size (a size taller than larger=
I think what's missing is a call to [handle closeFile]. From the
NSFileHandle docs:
Sending closeFile to a file handle does not cause its deallocation.
Deallocation of a file handle deletes its descriptor and closes the
represented file or channel only if the handle was created
On 19 Apr '08, at 3:05 AM, Peter Zegelin wrote:
However as things currently are, every time a checkbox is clicked on
the row is selected as well, and the focus is shifted away from my
drawing view to this tableview. What I would really like to happen
is that if a user clicks on a checkbox
On Apr 19, 2008, at 11:03 AM, Daniel wrote:
Hi to all,
is there a way to query all the possible applications (the one which
is shown in the list Open With) of a specific file from Cocoa?
This returns an array with URLs of applicable applications for a file
of a given URL:
- (NSArray
On Apr 18, 2008, at 5:54 PM, Jack Repenning [EMAIL PROTECTED]
wrote:
On Apr 18, 2008, at 2:56 PM, K. Darcy Otto wrote:
I want to subclass Dependency and override a few things. Can I do
this without modifying DeductionLine?
Perhaps you want to create a category instead? That allows you
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made in either table, an instance
variable is set. I want to have an NSButton's enabled state to 'YES'
whenever the instance variable is set. I've tried binding the button to the
instance
On Apr 19, 2008, at 11:46 AM, Jerry Krinock wrote:
I often write methods that take an (NSError**)error_p argument. In
the documentation of Apple methods that do this, I read that the
NSError** will be set if there ^is^ an error, but most do not
specify what will happen if there is ^not^.
I have an array of objects. The objects are all subclasses of one
parent class. (For the sake of this email, I will say that the
subclasses are all different kinds of graphics that can be displayed,
and the superclass defines generalities that all graphics have in
common.)
My concern
(1) The HIG guidelines say, regarding alert icons:
In rare cases, you may want to display a caution icon in your
alert, badged with the application icon as shown in Figure 14-48. A
badged alert is appropriate only if the user is performing a task,
such as installing software, and a
On 2008 Apr, 19, at 11:24, Bill Bumgarner wrote:
If there is no error -- if the return value is set and valid -- then
the behavior regarding the (NSError**) argument is undefined.
Agreed, although not the way I would have designed it.
Any caller relying upon the value to be...unchanged...is
Hi,
I'm implementing the following method in NSActionCell's subclass which
I'm using for NSTableColumn dataCell.
- (BOOL)trackMouse:(NSEvent*)theEvent
inRect:(NSRect)cellFrame
ofView:(NSView*)controlView
untilMouseUp:(BOOL)flag
{
NSPoint locationInCell;
If I understand well, your trying to catch event that match a menu
item shortcut minus the shift key. Isn't it possible to override -
[NSApp sendEvent:] as you did, but instead of taking care of the
event yourself, create a new event that match the menu item and
then call super with this
#define SSYInitErrorP(_error_p) NSError* dummyError ; \
if (_error_p == NULL) { \
_error_p = dummyError ; \
} \
* _error_p = nil ;
I use it like this, with an (NSError**)error_p:
SSYInitErrorP(error_p)
Besides setting *error_p to nil, which we agree is not necessary but
I just like, it
I'm trying to debug a Cocoa app that occasionally exceeds the max
allowable number of file handles open and I'm wondering if there's a
way to query how many are actually open. I haven't found anything in
the docs. Does anyone know where I might find a reference to such a
function?
thanks,
wes
On Fri, Apr 18, 2008 at 9:00 PM, Wesley Smith [EMAIL PROTECTED] wrote:
I'm trying to debug a Cocoa app that occasionally exceeds the max
allowable number of file handles open and I'm wondering if there's a
way to query how many are actually open. I haven't found anything in
the docs. Does
Am 19.04.2008 um 18:46 schrieb Jerry Krinock:
I often write methods that take an (NSError**)error_p argument. In
the documentation of Apple methods that do this, I read that the
NSError** will be set if there ^is^ an error, but most do not
specify what will happen if there is ^not^.
I'm trying to debug a Cocoa app that occasionally exceeds the max
allowable number of file handles open and I'm wondering if there's a
way to query how many are actually open. I haven't found anything in
the docs. Does anyone know where I might find a reference to such a
function?
I don't
On Apr 18, 2008, at 1:00 PM, Wesley Smith wrote:
I'm trying to debug a Cocoa app that occasionally exceeds the max
allowable number of file handles open and I'm wondering if there's a
way to query how many are actually open. I haven't found anything in
the docs. Does anyone know where I
Ok, it's been a while since I've bugged you guys, so I thought I'd get
back into the fold. Note that I'm very new to graphics programming in
general, and even more so for Cocoa. So be prepared for an easy fix!
Anyway, the problem I have is this.
+--+
|++|
No, that's not the problem. The problem is that some combinations simply
don't work. For instance, just as a random example, AppKit does not
match option+, or shift+`. (Haven't tried adding command but offhand
I don't have any reason to think that this would fix it.)
My app supports
Could you do something else to cause VoiceOver to explicitly say the
string you want it to?
Martin Wierschin wrote:
The fake temporary item solution actually works pretty well. It's
the last thing I'd call elegant, but here's how you can blink a menu
title in Cocoa.
Unfortunately that
Good evening,
I am having trouble understanding the bindings for NSPopupButton.
View: NSPopupButton
Controller: NSArrayController, just for the popup button
Model: NSMutableArray of NSMutableDictionaries.
I have the array controller bound to the array in the model, and that
is working fine.
Hi Peter,
I have solved this problem in the past (under Tiger, same code still
works fine on Leopard) and here's what I did - it may not be
completely generic but it but should give you the general idea. There
might be an easier/cleaner/better way to do it, but it did the trick
for me.
On Apr 19, 2008, at 15:36, Ali Ozer wrote:
(3) According to the NSResponder class reference, a responder
passes presentError to the next error responder and:
if there is no next responder, it passes the error object to
NSApp, which displays a document-modal error alert
I had hoped this
On Apr 19, 2008, at 7:15 PM, William Hunt wrote:
Essentially I have a window with a custom view atop a button. What
happens at each refresh, however, is that the custom view's
drawRect: is called twice. First it is called with the whole
window's NSRect, then it is called with the proper
I have run into the same issues - in my case I can always convert a
subclass back to a superclass that is usable, but I don't see a
problem with your keyed archiver delegate returning an NSNull object
for classes it doesn't know about, or even just nil. You'll need to
experiment to see if
On Apr 19, 2008, at 9:55 AM, Gerd Knops wrote:
This returns an array with URLs of applicable applications for a
file of a given URL:
- (NSArray *)applicationsForURL:(NSURL *)url {
return (NSArray
*)LSCopyApplicationURLsForURL((CFURLRef)url,kLSRolesAll);
}
It also leaks -- even
On Apr 19, 2008, at 5:58 PM, Johnny Lundy wrote:
Good evening,
I am having trouble understanding the bindings for NSPopupButton.
View: NSPopupButton
Controller: NSArrayController, just for the popup button
Model: NSMutableArray of NSMutableDictionaries.
I have the array controller bound
On Apr 19, 2008, at 11:08 AM, Lorenzo Thurman wrote:
I have two NSTableViews, tableA and tableB, each managed by separate
NSArrayControllers. When a selection is made in either table, an
instance
variable is set. I want to have an NSButton's enabled state to 'YES'
whenever the instance
Hey guys,
I have a KVO question. First, the setup:
Foo
NSMutableArray *bars;
Bar
NSString *name;
int number;
AppDelegate
NSMutableArray *foos;
So the AppDelegate will contain an array of Foo object and each Foo
object will have an array of Bar objects. I want to be able to
35 matches
Mail list logo