Hello,
I am looking to create a drag & drop mechanism that allows the re-
ordering of items. Ideally it would work like the side bar in Finder
windows, where one can drag items and their icons up and down.
Another way it could work would be like a horizontal film strip with
thumbnail icons
Hello,
is there a way to get to the finder label of a file from Cocoa? I'd like to be
able to get & set them.
Thanks,
Rainer___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
That's exactly what I was looking for - thank you very much!
Rainer
On Apr 28, 2010, at 0:08 , Jean-Daniel Dupas wrote:
>
> Le 28 avr. 2010 à 02:14, Rainer Standke a écrit :
>
>> Hello,
>>
>> is there a way to get to the finder label of a file from Cocoa
Hello,
I have a bunch of NSURLs for existing files on the system, and a smaller number
of NSRURLs for their enclosing folders. I am looking to determine if a given
file is within a given folder, based on their URLs.
Right now I am thinking that I'll have to create the enclosing folder's URL by
Hello,
I am looking for a way to center align text in a table view vertically. I
understand that this may need some custom drawing mechanism.
Is there any sample code out there? Or is there another way?
Thanks,
Rainer___
Cocoa-dev mailing list (Coco
Hello all,
I am trying to bind a QTMovieView's movie. Ideally I'd like to bind it to a URL
I can supply from a managed object. There is a document that seems to indicate
that this should be possible here:
http://developer.apple.com/mac/library/documentation/cocoa/reference/CocoaBindingsRef/Bind
Hello,
I have a Collection View whose prototype view includes a QTMovieView. I need
the collection view to be a drag source, and that works fine.
I need the QTMovieView to not be a drag source, so I subclassed it with a
method that looks like this:
- (NSDragOperation)draggingSourceOperationMas
, douglas welton wrote:
> did you try overriding the -mouseDragged: method in your subclass?
>
> On May 8, 2010, at 1:15 AM, Rainer Standke wrote:
>
>> Hello,
>>
>> I have a Collection View whose prototype view includes a QTMovieView. I need
>> the collectio
Hello all,
I am wondering how to turn XML string fragments into XMLNodes or XMLElements.
So far, the only thing I have come up with is to create a new, temporary
NSXMLDocument and detach the rootelement from it. This seems a little clunky...
In the past I have used XMLLib in AppleScript, and it
Hello,
when I select my data model in the xcode project, and then select Design/Data
Model/Add Model Version I do get a new bundle in Xcode project, but now copy of
the existing datamodel. The bundle, both in Xcode and on the Finder level, is
empty. The app does not compile any more.
The only
Hello,
I am trying to associate a custom formatter with a text filed in IB. Having no
luck with with either dragging out of 'Classes' or instantiating and then
dragging out of the .xib window.
Do I have to do this programmatically?
Thanks,
Rainer
_
Hello,
I have a custom formatter that needs to to look up a default value based on the
current document. The textfield the formatter sits on is part of a collection
view. In the nib the formatter has a connection (via IBOutlet) to the object
that holds the value that is to be looked up. The pro
Hello all,
I have a subclassed NSImageView that is a drag source and a drag destination. I
am trying to have an NSTrackingArea so that when the drag out of the image view
leaves they window I can update the cursor to indicate deletion of the item - I
am thinking of the cursor that looks like an
the window is ordered
> front by a secondary thread, then the tracking areas will be stuck in a
> pending state. There's probably more reasons for this but these are the two
> I'm personally familiar with.
>
>
> On Jun 11, 2010, at 1:42 PM, Rainer Standke w
gingSource
Protocol to decide if the mouse pointer is inside the view's window's
rectangle, and I re-assign the cursor accordingly. This happens every time the
mouse moves until the dragging session is over.
Rainer
On Jun 11, 2010, at 14:37 , Rainer Standke wrote:
> It turns out
Hello all,
trying to clarify another newbie question. I have an app that has multiple
windows per document. I'd like to be able to open and close those windows
independently from each-other. I understand that I should use
NSWindowControllers. So what I think I should be doing is this:
- when n
ck to the doc's windowControllers and then call
showWindow: - is that the way to do it?
Thanks,
Rainer
On Jun 28, 2010, at 14:20 , Jens Alfke wrote:
>
> On Jun 28, 2010, at 12:40 PM, Rainer Standke wrote:
>
>> - when new document opens I put its window controller into an
Hello all,
is it possible to determine if one object is observing another? Specifically,
I'd like one object to ask another "are you observing me?". That way I could
determine if I need to remove that observer before I let go of the observed
object...
Thanks,
Rainer___
At the bottom of each finder window there is a 'path' display that indicates
the path to the directory represented by the window. I'd like to be able to
convert a path like this one:
'file://localhost/Users/rainer/Desktop/S&S%20material/hidden/' to some like:
'MacHD/Users/rainer/Desktop/S&S mat
yle Sluder wrote:
> On Jul 1, 2010, at 8:26 AM, Rainer Standke wrote:
>
>> Hello all,
>>
>> is it possible to determine if one object is observing another?
>> Specifically, I'd like one object to ask another "are you observing me?".
>> That way I c
That helps, to get rid of the 'file://localhost' part. What about the addition
of the drive name?
Thanks,
Rainer
On Jul 1, 2010, at 10:33 , Kevin Wojniak wrote:
> Use -[NSURL path] to get the unix-style path format.
>
>
> On Jul 1, 2010, at 10:29 AM, Rainer Stand
What I was looking for was this:
-[NSFileManager componentsToDisplayForPath:]
Thanks, Ken.
Rainer
On Jul 1, 2010, at 10:29 , Rainer Standke wrote:
> At the bottom of each finder window there is a 'path' display that indicates
> the path to the directory represented by the
Hello,
I have an outline view with a column with an NSButtonCell in it. I want to make
that button invisible and inactive for all outline rows. Here is my code for
the ouline view's delegate:
- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:(id)cell
forTableColumn:(NSTableColum
Thanks for your help, Graham, that now makes more sense. I am actually using
'isLeaf' on item to determine if it's a parent or not...
Rainer
On Jul 5, 2010, at 17:11 , Graham Cox wrote:
>
> On 06/07/2010, at 4:56 AM, Rainer Standke wrote:
>
>> setEnabled
Hello all,
I just realized that the 2010 WWDC videos are accessible now - but what about
the ones from 2009? Is there a way to ask Apple to make them available?
Thanks,
Rainer___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post
Hello,
I have 2 questions regarding IKImageViews.
- I am trying to add a shadow to an IKImageView. It shows up in IB, but not in
the built app. The IKImageView is inside a NSCollectionView. All superviews
have 'Wants Animation Layer' turned on. What am I missing?
- When making a drag image for
Hello,
I have replaced a bunch of NSImageViews with IKImageViews in my app. These
image views are presented inside an NSCollectionView. Both the NSImageViews and
the IKImageViews had shadows turned on in IB. The NSImageViews' shadows showed
up fine, but the IKImageViews' shadows are nowhere to
Hello,
I am trying to have a script executed on a virtual machine inside VM Fusion.
This works with the vmrun command in Terminal, like so:
/Library/Application\ Support/VMware\ Fusion/vmrun -T fusion -gu *** -gp ***
runScriptInGuest "/Users/rainer/Documents/Virtual Machines.localized/Windows
Thanks, that's what I was missing.
Rainer
On Aug 5, 2011, at 20:21, Stephen J. Butler wrote:
> On Fri, Aug 5, 2011 at 10:15 PM, Rainer Standke wrote:
>> args: (
>>"-T fusion",
>>"-gu Administrator",
>>"-gp Admin",
&g
Hello,
I have a command line tool that uses foundation. When I run that tool from the
command line it does what I need it to do. This includes sending an
NSNotification to a Cocoa application via the NSDistributedNotificationCenter.
When I call the same command line tool from a php page served
ug 23, 2011, at 1:19, Daniel Acosta wrote:
> On Aug 23, 2011, at 12:15 AM, Jens Alfke wrote:
>
>>
>> On Aug 22, 2011, at 10:45 PM, Rainer Standke wrote:
>>
>>> I have a command line tool that uses foundation. When I run that tool from
>>> the command li
Hello,
I am trying to determine the state of a menu item in another application. I
have tried via AppleScript UI scripting, and via AppleScript Studio's state of
menu item. I am coming up empty. I can get to the menu and select the item fine
- but I can't get the status. I am interested whether
Hello,
I have an application that needs to wait for a file to be fully written. I
tried this by getting an NSFilehandle, and with open() and fopen(), hoping that
a failure of these would indicate that they are not done writing yet. However,
I get only successes, even if the file is clearly stil
On Apr 10, 2011, at 17:53, Scott Ribe wrote:
> On Apr 10, 2011, at 5:57 PM, Rainer Standke wrote:
>
>> Is there any way to tell if a file is done being written?
>
> In general, no. There are lots of "maybe kind of" solutions, including trying
> to open for exclusi
Thanks for pointing these out, Uli. Are those classes youhave on github newer
than, let's say, UKKQueue on you website at
http://zathras.de/angelweb/sourcecode.htm?
Rainer
On Apr 12, 2011, at 0:44, Uli Kusterer wrote:
> On 11.04.2011, at 07:18, Gary L. Wade wrote:
>> You might find the
>> FSEv
Hello,
I am figuring out how to get a directory listing (via CFFTPStream) and how to
download a file from an ftp server (via NSURLConnection). How would I go about
deleting a file on an ftp server?
Thanks!
Rainer
___
Cocoa-dev mailing list (Coco
Hello,
I am trying to have my Mac app log info in such a way that a log file will be
visible in the Console app, and the logfile is managed by syslogd.
I am playing with asl_log and friends, and I can make things appear in the
system log. How do I cause the creation of a distinct log file for t
Hello,
I'd like to use a variable in an XPath query like this, where the
variable would be $xPathVar1:
NSArray *nodes = [document nodesForXPath:@".//d...@class = 'filmo']/ol/
li/a/text() = $xPathVar1" error:&err];
Is this possible? How would I declare and set the variable?
Thanks,
Rainer
Hello,
in core data how does it make a difference whether an ObjectController
is in Entity or Class Mode?
Thanks,
Rainer
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
C
That's helpful, thanks!
Rainer
On Dec 17, 2009, at 9:41 , Quincey Morris wrote:
On Dec 17, 2009, at 09:05, Rainer Standke wrote:
Well, I'm quite new to this, and I am mainly just curious. I am
indeed doing both the add: and the prepares content automatically.
Seems to work reg
Hello,
is there a way to store regular ivars in docs of a core data doc-based
applictions?
Rainer
___
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
Yes, that was my question. Thanks for your help,
Rainer
On Dec 23, 2009, at 3:18 , Quincey Morris wrote:
On Dec 22, 2009, at 21:40, Rainer Standke wrote:
is there a way to store regular ivars in docs of a core data doc-
based applictions?
What's a doc? Seriously, are you talking ab
Hello all,
I have a table view with a column that holds a button cell. When the
user clicks the button I need to open a web browser with an URL that
is stored in the object represented by the table view's row. All of
this is in a Core Data app.
When the button is clicked in a row that is
oller selection]
valueForKey:@"URLFragment"];
NSLog(@"selectedPersonPage: %@", selectedPersonPage);
Thanks again,
Rainer
On Dec 27, 2009, at 18:10 , Paul Bruneau wrote:
On Dec 27, 2009, at 9:00 PM, Rainer Standke wrote:
Hello all,
I have a table view with a colum
the table view seems to not change until the method triggered by the
button cell has finished running.
Thanks everyone for you patience with a newbie,
Rainer
On Dec 27, 2009, at 18:38 , Paul Bruneau wrote:
On Dec 27, 2009, at 9:21 PM, Rainer Standke wrote:
Sure. Here is what happens in
When I ask an ABMultiValue for its labelAtIndex: I get some thing like
this: _$!!$_
I would have expected to get this: other
What's odd is that I do get this in the description of the ABMultiValue:
* other 818 301 4670 w NG
other 323 251 3660 c
How can I get to the clean value?
Thanks,
It is - Thanks!
Rainer
On Dec 30, 2009, at 15:15 , Aaron Tuller wrote:
At 2:19 PM -0800 12/30/09, Rainer Standke wrote:
When I ask an ABMultiValue for its labelAtIndex: I get some thing
like this: _$!!$_
I would have expected to get this: other
How can I get to the clean value?
The
Hello,
is there any way set the scroller size to something less than regular
in a scroll view? Since I am on Interface Builder 3.1.2, that seems to
not work any more.
Is there anything I'm missing?
Thanks,
Rainer
___
Cocoa-dev mailing list (Coc
I knew I wasn't getting something! Thanks, Seth.
Rainer
On Jan 3, 2010, at 20:29 , Seth Willits wrote:
On Jan 3, 2010, at 7:46 PM, Rainer Standke wrote:
is there any way set the scroller size to something less than
regular in a scroll view? Since I am on Interface Builder 3.1.2,
Hello,
another newbie question, I'm afraid. My app has an number of items to
process, and on each the user is asked for input in a sheet attached
to the document's window. Everything works fine when I present the
sheet for the first time. But when user interaction with the sheet is
finish
calls the above
method again, which will present the sheet for the next item, or if
there is no item left in the array will simply do nothing.
Rainer
On Jan 6, 2010, at 22:33 , Graham Cox wrote:
On 07/01/2010, at 5:10 PM, Rainer Standke wrote:
How do I go about solving this?
This is
I am trying to get some contextinfo across while a sheet is displayed.
Here is the code that displays the sheet:
NSArray *theContextInfo = [[NSArray alloc] init];
theContextInfo = [NSArray arrayWithObject:objTBD];
[NSApp beginSheet: alertWindow
modalF
Thanks, everyone, for your help.
Rainer
On Jan 12, 2010, at 12:19 , Markus Spoettl wrote:
On Jan 12, 2010, at 8:51 PM, Rainer Standke wrote:
Here is the code that displays the sheet:
NSArray *theContextInfo = [[NSArray alloc] init];
theContextInfo = [NSArray arrayWithObject:objTBD
Hello,
I am trying to validate an NSXMLDocument against an external DTD. Here
is what I do:
NSError *error = nil;
NSXMLDocument *doc = [[[NSXMLDocument alloc]
initWithXMLString:beamedXML options:NSXMLNodeOptionsNone error:&error]
autorelease];
if (!doc) {
NSLo
= [doc validateAndReturnError:nil];
if (valid) NSLog(@"valid"); // "valid"
This point was well covered in a previous thread:
http://lists.apple.com/archives/cocoa-dev/2006/Sep/msg00464.html
m.
Date: Tue, 19 Jan 2010 20:02:23 -0800
From: Rainer Standke
Subject: Validating NS
Hello,
I have an app that sends and receives AppleEvents to and from Final
Cut Pro. The AppleEvent part of my code is closely modeled after the
sample code provided by Apple. Really: I barely modified the code.
When I look at Leaks I am told that for each transaction (sending or
receiving
Hello,
I have an app that loads a web page into a webView. From that I grab
the main frame's html text like so:
NSString *htmlString = [[[NSString alloc] initWithData:[[frame
dataSource] data] encoding:NSISOLatin1StringEncoding] autorelease];
I am wondering how I could detect the html tex
s? What am I missing here? As far as I can tell I am
trying to use Javascript here, no?
Thanks!
Rainer
On Jan 29, 2010, at 11:33 , Jens Alfke wrote:
On Jan 29, 2010, at 10:46 AM, Rainer Standke wrote:
I have an app that loads a web page into a webView. From that I
grab the main
, Rainer Standke wrote:
NSLog(@"%@", [frame.DOMDocument.characterSet class]);
I get an error: request for member 'characterSet' in something not
a structure or union
You may need to #import the header for DOMDocument.
As far as I can tell I am trying to use Javascript here, n
Hello,
I have a Cocoa app that tries to take advantage of existing ruby code.
I basically want to use several scripts from a RubyCocoa application
in my app. Is there a way to do that?
Thanks,
Rainer
___
Cocoa-dev mailing list (Cocoa-dev@lists.a
Hello,
I have an document-based CoreData application that uses an NSOperation
to manipulate ManagedObjects. I can successfully synchronize the main
thread's context, using mergeChangesFromContextDidSaveNotification:.
However, when I subsequently try to save the document I get a warning
th
Hello,
In a core data document based app I have a NSTextView inside an
NSCollectionView. The text view's value is bound to a core data attribute. When
a document is opened the text does not draw in the text view. When the user
clicks the view it will draw the text correctly.
The text always dr
Hello,
wondering how to clear a context. I'm using this:
CGContextClearRect(context, drawingRect);
But yet, afetr I do that, and then start to draw something new, I get remnants
of the previous content of the context.
My workaround is to create brand new context for the second drawing, but
sh
tSetAllowsAntialiasing(context, YES);
CGContextSetShouldAntialias(context, YES);
return context;
Rainer
On Oct 4, 2010, at 11:15 , David Duncan wrote:
> On Oct 4, 2010, at 11:04 AM, Rainer Standke wrote:
>
>> wondering how to clear a context. I'm using this:
>>
>> CGCo
Hello,
I have an iPhone project where I am using an MPMoviePlayerViewController to
display a movie. It is initialized with a URL, and the movie does indeed start
playing, in portrait orientation.
I want this to happen in landscape orientation, ideally doing autorotations.
In my subclass of MP
roller.
There is a quirk worth mentioning, and that is that in the simulator the 'Done'
button doesn't get drawn, but it's functionality is there: just click in the
upper left to dismiss the entire thing. On the device the button is drawn as
expected.
Rainer
On Oct 20, 20
Hello,
wondering if there is a way to detect whether the location services are enabled
for the app. I am not after the global enabledness, but after the enabledness
of my app.
I imagine the OS stores this information somewhere, but can we get (read)
access to that programmatically?
Thanks,
R
Thanks Glenn,
I was afraid so.
Rainer
On Nov 24, 2010, at 12:50 , glenn andreas wrote:
>
> On Nov 24, 2010, at 2:31 PM, Rainer Standke wrote:
>
>> Hello,
>>
>> wondering if there is a way to detect whether the location services are
>> enabled for t
Hello,
I am thinking about doing something like this:
- to init a custom object, call a convenience initializer that in turn calls
the designated initializer
- in the convenience initializer, before the designated initializer is called,
check some conditions. If that test fails return nil.
Th
Helo,
I want to get file metadata into a propertyList.
My first question is how to get the metadata for a specific file. I gather that
there is not a way to get a NSMetadataItem for a specific file, other than to
perform a NSMetadataQuery - which seems silly, since I have the file path to
beg
Hello,
I have an app that is sandboxed that I want to perform some unit testing with.
When I run the test, I get something like:
no suitable image found... open() failed with errno=1 IDEBundleInjection.c:
Error loading bundle '
When I turn off Entitlements in the application target's Summary t
Hello all,
I have a sandboxed Mac app that I want to write user script for (which could
run outside of the sandbox). I am trying to write that script as a stand-lone
Unix executable. I have that called as a NSUserUnixTask, and I can see that it
runs. However my sandboxed app doesn't get a retur
> On Apr 13, 2013, at 5:41 PM, Rainer Standke wrote:
>
>> I have a sandboxed Mac app that I want to write user script for (which could
>> run outside of the sandbox). I am trying to write that script as a
>> stand-lone Unix executable. I have that called as a NSUserUni
Hello all,
I have an app that's rendering QuickTime movies based on AVFoundation. It's
multi-threaded via GCD, and has up 6 renders going at the same time.
I am getting un-explained crashes, or at least I can't explain them. The
crashing thread is usually something deep in AVFoundation. I get t
Hello all,
I am wondering if foregoing the standard way of loading nibs is the answer to
problem I have.
I need to create two different versions of my app's main window based on what
OS version the app is running on.
So far the app contains one single main nib file that gets loaded when the ap
75 matches
Mail list logo