Hi Graham,
This is great - worked like a charm first time. Many, many thanks!
The only thing I think I need to do now is to get the TableView to
become first responder when I don't click on a checkbox. I think I'm
nearly there as well. What I have done is make the tableview accept
I need an absolute path.
So I do:
NSFileManager *fima = [ NSFileManager defaultManager ];
NSString *fileType = [ [ fima fileAttributesAtPath: path
traverseLink: NO ]; fileType ];
if ( [ fileType isEqualToString: NSFileTypeSymbolicLink ] )
path = [ fima
On Sun, Apr 20, 2008 at 3:19 AM, Gerriet M. Denkmann [EMAIL PROTECTED]
wrote:
I need an absolute path.
So I do:
NSFileManager *fima = [ NSFileManager defaultManager ];
NSString *fileType = [ [ fima fileAttributesAtPath: path traverseLink: NO
]; fileType ];
if ( [ fileType
On Sun, Apr 20, 2008 at 3:46 AM, stephen joseph butler
[EMAIL PROTECTED] wrote:
You can do this:
[[path stringByDeletingLastPathComponent]
stringByAppendingPathComponent:[fima pathContentOfSymbolicLinkAtPath
:path]];
I think that will work.
Actually, that won't. You have to write a
Hi Peter,
You'll note my code says nothing about first responder, so you should
get whatever the table view is set to do. In my use of this code, my
table view is actually in a floating window and I've set it only to
become key if needed - and so for changing selection or toggling
What happens if you change
- (tetra)init;
to
- (id)init;
wp
On Apr 20, 2008, at 2:08 AM, Spam Tron wrote:
HI all -
I want to be able to extend the NSOpenGLView class to have a ptr to
some ptr
to an NSObject class (nothing too complicated I think?).
Here's the tetra.h file
//Tetra.h
//
HI all -
I want to be able to extend the NSOpenGLView class to have a ptr to some ptr
to an NSObject class (nothing too complicated I think?).
Here's the tetra.h file
//Tetra.h
//
// tetra.h
// myogl
//
// Created by shockwave on 4/2/08.
// Copyright 2008 __MyCompanyName__. All rights
Le 20 avr. 08 à 01:03, Uli Kusterer a écrit :
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
On 20 Apr 2008, at 10:53, [EMAIL PROTECTED] wrote:
On Sun, Apr 20, 2008 at 3:46 AM, stephen joseph butler
[EMAIL PROTECTED] wrote:
You can do this:
[[path stringByDeletingLastPathComponent]
stringByAppendingPathComponent:[fima pathContentOfSymbolicLinkAtPath
:path]];
I think that will
You can see the code at http://developer.apple.com/samplecode/DragItemAround/listing2.html
on ADC.
The bug is that the cursor reverts to arrowCursor if the item is
dragged off the bound calculated at the mouseDown event just before
current mouseDragged event, instead of staying
On 20/04/2008, at 7:28 PM, Graham Cox wrote:
Hi Peter,
You'll note my code says nothing about first responder, so you
should get whatever the table view is set to do. In my use of this
code, my table view is actually in a floating window and I've set it
only to become key if needed -
Hi guys,
I'm making a Cocoa based application that will communicate with a
webservice that I've already written other applications for and works
great. The server part is written in C# and uses SOAP as WS
communication protocol. Now, I've made the stubs by
WSMakeStubs -x ObjC -name
Thanks Steve,
I have the IBAction working no problem. What I was looking to do is to
use bindings, as I am trying to learn about them - I am doing this
project to teach myself about MVC-compliant techniques. I have the
array controller and just need to know which one of the popup's
On Apr 20, 2008, at 6:18 AM, Gerriet M. Denkmann wrote:
So - just for fun - how can I convert the symbolic link /tmp into
an absolute pathname?
stringByResolvingSymlinksInPath leaves it unchanged.
That the /private prefix is removed is documented behavior.
I just noticed a bug in the code I posted - it should be:
- mouseDown:
...
if ([dataCell trackMouse:event inRect:cellFrame ofView:self
untilMouseUp:YES])
{
// call the datasource to handle the checkbox state change as
normal
[[self dataSource] tableView:self
On Apr 19, 2008, at 11:33 PM, Chris Hanson wrote:
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
I have two different class objects that need to know about each other
(see below). But if I include the header from one class inside the
header of the other class the compiler complains. Is this even possible?
ClassOne.h:
#import ClassTwo.h
@interface ClassOne : NSObject {
On Sun, Apr 20, 2008 at 7:20 AM, Uli Kusterer
[EMAIL PROTECTED] wrote:
Am 20.04.2008 um 11:45 schrieb Jean-Daniel Dupas:
I greatly prefere the C99 way to do it. It prevents variables conflict if
you have more than one loop in your method.
for (int idx = 0; idx maxCount(); idx++) {
}
On Apr 20, 2008, at 1:13 AM, Jake Carter wrote:
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
observe the bars from the AppDelegate to see when new bars are added
or when a property changes in each bar
On 20 Apr '08, at 3:43 AM, Ling Wang wrote:
The bug is that the cursor reverts to arrowCursor if the item is
dragged off the bound calculated at the mouseDown event just before
current mouseDragged event, instead of staying closedHandCursor.
Maybe it will be clear till you try to run it.
To resolve symlinks in paths, call
-[NSString stringByResolvingSymlinksInPath:]
This is declared in NSPathUtilities.h, which makes it easy to
overlook...
—Jens
smime.p7s
Description: S/MIME cryptographic signature
___
Cocoa-dev mailing
On 20 Apr '08, at 5:32 AM, のりちん wrote:
I'd like to know who tells NSDocument that its location has been
changed by other apps and how to get the notification.
I think that internally each NSDocument instance keeps an AliasHandle
pointing to the document file, and before saving resolves the
Hi,
thank you very much for your help, I was searching exactly that!
Best regards,
Daniel
On Sun, Apr 20, 2008 at 5:15 PM, Gerd Knops [EMAIL PROTECTED] wrote:
On Apr 19, 2008, at 11:33 PM, Chris Hanson wrote:
On Apr 19, 2008, at 9:55 AM, Gerd Knops wrote:
This returns an array with
If your document's format is a document bundle, just make sure to save your
PDF preview inside your document's bundle in a folder names QuickLook.
The preview should be named Preview.pdf
The thumbnail should be named Thumbnail.png (or jpg, or whatever format
suites you)
If you can't do that, you
On Sun, Apr 20, 2008 at 10:17 AM, Philip Bridson
[EMAIL PROTECTED] wrote:
Hi There,
Is there anyway to pass a C string from a Obj-C class to a C function as an
argument? I know that I can use pointers to the string but it gets a bit
messy as I am using pointers in the C function to
On Sat, Apr 19, 2008 at 11:55 PM, Chris Hanson [EMAIL PROTECTED] wrote:
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
On Apr 19, 2008, at 5: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
Now I want to be able to calculate the optimal width of the view so
that the entire text is visible.
This worked wonders for me:
http://www.cocoabuilder.com/archive/message/cocoa/2008/3/31/202752
This also does not solve my problem.
Getting the height of a text for a given width is easy and
On 20 Apr '08, at 10:17 AM, Philip Bridson wrote:
Is there anyway to pass a C string from a Obj-C class to a C
function as an argument? I know that I can use pointers to the
string but it gets a bit messy as I am using pointers in the C
function to manipulate the string.
It sounds like
Am 20.04.2008 um 22:08 schrieb Hamish Allan:
On Sun, Apr 20, 2008 at 7:34 PM, Joachim Deelen cocoa-
[EMAIL PROTECTED] wrote:
does really no one have a solution or a hint for the Problem
mentioned
below? Maybe I'm understanding something wrong? Any help or Ideas
would be
appreciated
If you wish to vary both the width and height to be a more pleasing set of
dimensions, similar to what an alert does, try word wrapping your text into a
golden ratio rectangle using the area measurement generated by your single-line
text measurement. Of course, based on a strict interpretation
Posted: 10-Mar-08
Job reference: 08031001
Location: San Francisco area
Type: Corp-to-Corp contract
Length: 8 - 12 months
Department: Engineering Group
Reports To: Director, Client Applications
General Summary:
Our client is looking for an experienced Mac OS X developer, someone who can
I have an NSScrollView to which I add data as the program proceeds. I
would like to have it scroll itself automatically, so that the bottom
(most recently added) line is always visible, instead of the top. As
an example, Xcode's build transcript does what I'm after. I figured
this would
Looks like I found a solution... anyone please let me know if my
solution stinks. (or any of the rest of this thing!)
In the method
- (void)windowControllerDidLoadNib:(NSWindowController *) aController
I added this:
[textView setString:[[stickitNotes objectAtIndex:0] noteBody]];
#import
On 20 Apr '08, at 9:36 PM, JanakiRam wrote:
this code doesn't seem to work for mounting multiple volumes/
accounts.I'm always getting -43 error.If i unmount the earlier
volume/account on the same server then i'm able to mount another
volume on the same server.
I don't think you can log
Aha - I think you've hit the nail on the head. You say remember but
I don't think I realised this.
In this case updating the data model is not really what I want - for
one thing it's quite expensive (potentially) and for another it makes
more sense to set the data model on the mouse-up
On 20 Apr '08, at 10:40 PM, Graham Cox wrote:
So the question is: is there a way to trigger the reload of just a
single row? This isn't necessarily the selected row... if I just
mark for update the cell rect for the row/column is NSTableView
smart enough to only request the data for that
37 matches
Mail list logo