Folks;
I'm trying in 10.4+ to implement dragging data from a tableView to the
desktop.
My problem is probably a dunderhead oversight but I can't see it.
I have NOT subclassed an NSTableView.
In a windowController I do the following in -awakeFromNib:
(myTableView is an Outlet)
...
[myTable
Hello,
How would one bind an application to a given file type programmatically?
The normal method is to select a file of the type, choose "get Info",
then "open with" and select an application to always open the file type
with.
What I would like to know is if it possible to do so either u
On 23 Sep 2008, at 7:00 pm, Steve Cronin wrote:
Folks;
I'm trying in 10.4+ to implement dragging data from a tableView to
the desktop.
My problem is probably a dunderhead oversight but I can't see it.
I have NOT subclassed an NSTableView.
In a windowController I do the following in -awakeF
On 23 Sep 2008, at 10:22 pm, Graham Cox wrote:
Have you actually written the promised files type in -
tableView:writeRowsWithIndexes:toPasteboard: ? If not, that might be
why you're not seeing the expected cursor.
This further passage from the same doc is also pertinent, I guess:
"The NST
Hi guys, I'm developing my first decent size application with
Objective-C and I'm starting missing a framework I use for my
applications when I do ActionScript, precisely PureMVC:
http://puremvc.org/content/view/67/178/
It is basically a way to be able to send notifications across the application
On 23 Sep 2008, at 10:33 pm, Christian Giordano wrote:
It is basically a way to be able to send notifications across the
application.
Is there something similar for Objective-C?
NSNotificationCenter and NSNotification?
hth,
Graham
___
Cocoa-
Hello List,
I am investigating the possibility to use icalserver to store medical
appointments.
This means either:
- a physician (a user of the calendar)
- a patient
- a given day and time
or
- a resource (XRay material, etc...)
- a patient
- a given day and time
Now, I have two problems:
Yep, that seems to be the way to go!
Thanks a lot Graham.
Best, chr
On Tue, Sep 23, 2008 at 1:40 PM, Graham Cox <[EMAIL PROTECTED]> wrote:
>
> On 23 Sep 2008, at 10:33 pm, Christian Giordano wrote:
>
>> It is basically a way to be able to send notifications across the
>> application.
>>
>> I
Andrew Mortensen of the University of Michigan has created an
application, "duti," that does just this from the command line.
http://duti.sourceforge.net/
Jeffrey R. Kelley
[EMAIL PROTECTED]
ITCS - Campus Computing Sites
University of Michigan
On Sep 23, 2008, at 8:20 AM, Pierre Guilluy wrote
On Mon, Sep 22, 2008 at 10:41 PM, Andrew Zahra <[EMAIL PROTECTED]> wrote:
> I am experimenting with the resume functionality in NSURLDownload, however I
> always get nil back when I call resumeData. I have tried a couple of
> different sites and then tried using wget to get the files. wget resumes
Am 23.09.2008 um 14:45 schrieb Christian Giordano:
Yep, that seems to be the way to go!
FWIW - if you want asynchronous delivery of the notifications, use
NSNotificationQueue instead of NSNotificationCenter...
On Tue, Sep 23, 2008 at 1:40 PM, Graham Cox <[EMAIL PROTECTED]>
wrote:
> The problem I am having is that to drag out of the WebView the panel has
> to be main (i.e. the close/minimize/zoom buttons are filled in).
> However, if you hold down the command key, the drag out of that window
> works fine.
>
> Where do I start looking to make this work without having to
If the response header does not include an ETag, NSURLDownload will
always return a nil resumeData.
On Sep 22, 2008, at 10:41 PM, Andrew Zahra wrote:
I am experimenting with the resume functionality in NSURLDownload,
however I
always get nil back when I call resumeData. I have tried a coup
Almost forgot additionally, you have to call the Cancel method
before checking resumeData, otherwise it's nil.
On Sep 23, 2008, at 12:17 PM, [EMAIL PROTECTED] wrote:
If the response header does not include an ETag, NSURLDownload will
always return a nil resumeData.
On Sep 22, 2008, at
Hi,
I'm building a context menu for a table view. The context menu will
naturally include some of the items from the application menu, but
when the related actions are not available, I don't want them to show
in the context menu.
My question is: is there a method to determine whether an ite
I'm just beginning to learn bindings, and I havea question.
Using bindings, how do you add an object (a textfield's string to be
specific) to a NSMutableArray so that a table view can show the object?
thanks!
___
Cocoa-dev mailing list (Cocoa-dev@
See the - (id)targetForAction:(SEL)aSelector method. When adding context menu
items, if the target for the menu item's action would be nil, just don't add
the menu item.
However, I recommend adding all menu items that are ever available and just
disabling the ones that aren't currently availa
We have all seen the ubiquitous "OK" "Cancel" buttons. Many people have
recommended more descriptive names that include verbs for button labels.
I just ran across a Cocoa application that shall remain nameless. I attempted
to cancel a long running operation by pressing a "Cancel" button, an
Thanks Erik, that exactly is I was looking for.
Regarding your recommendation as I learned context menus should not
contain disabled items (check Finder for example) but I'm not really
sure if this mentioned in the HIG.
Mudi
On Sep 23, 2008, at 7:28 PM, Erik Buck wrote:
See the - (id)targ
Hi,
I am new to cocoa and objective c. I am trying to create an application
which uses an external C library (exosip2 and libyahoo2). I have downloaded
the source code compiled it using terminal and added it to my project.
however I am having issues with it my application gives me a linking er
If you compiled your libs using the normal linux/unix ./configure,
make, make install routine, you likely don't have universal binaries.
Can't be sure your issue without seeing your linker error messages,
but this is a likely cause.
-Matt
On Sep 23, 2008, at 11:50 AM, Harsh Trivedi wrote
On Sep 23, 2008, at 10:22, Eric Lee wrote:
Using bindings, how do you add an object (a textfield's string to be
specific) to a NSMutableArray so that a table view can show the
object?
You need to modify the array in a KVO-compliant manner, which means
the array needs to be a property of
On Tue, Sep 23, 2008 at 1:39 PM, Erik Buck <[EMAIL PROTECTED]> wrote:
> I bring this up because I ran across another application today that took the
> advice of using more informative verbs for button labels. I tried to cancel
> an operation, and a panel appeared. The two choices were "Cancel"
Thanks for the reply Matt,
can you suggest a method or a
reference document for adding external libraries to a leopard based cocoa
app. The reason I specifically mention leopard is because leopard doesnot
allow adding static libraries
-Harsh
On Tue, Sep 23, 20
On Sep 23, 2008, at 12:56 PM, Harsh Trivedi wrote:
can you suggest a method or a
reference document for adding external libraries to a leopard based
cocoa
app.
Just drag them into the project from the Finder, or use the "add
existing frameworks" contextual menu item.
The reason I spec
Hi,
I've been struggling with for quite a while now, what i want to
achieve is create an alias of a folder at some location. The alias
would also be a folder like we have after creating an alias in the
finder.
say i have a folder "foo" in "/Users/me/Documents/foo" and i want to
programati
On Sep 23, 2008, at 1:13 PM, chaitanya pandit wrote:
I've been struggling with for quite a while now, what i want to
achieve is create an alias of a folder at some location. The alias
would also be a folder like we have after creating an alias in the
finder.
say i have a folder "foo" in "
On Wed, Sep 24, 2008 at 5:05 AM, j o a r <[EMAIL PROTECTED]> wrote:
>
> On Sep 23, 2008, at 10:39 AM, Greg Parker wrote:
>
>> You should first clean up anything you already did in your -init, then
>> call [super dealloc]. [self dealloc] or [self release] are bad because they
>> might call some subc
On Sep 23, 2008, at 1:21 PM, Quincey Morris wrote:
On Sep 23, 2008, at 10:22, Eric Lee wrote:
Using bindings, how do you add an object (a textfield's string to
be specific) to a NSMutableArray so that a table view can show the
object?
You need to modify the array in a KVO-compliant manne
Hi list,
We have some code in an application of ours that replaces the main
menu using NSMenu's setMainMenu:. This has been working just fine
since day one but ever since the introduction of Leopard we have
noticed some strange behavior with the "Help" menu. I have also
noticed this behavior in Re
On 24-Sep-08, at 1:47 AM, Nick Zitzmann wrote:
On Sep 23, 2008, at 1:13 PM, chaitanya pandit wrote:
I've been struggling with for quite a while now, what i want to
achieve is create an alias of a folder at some location. The alias
would also be a folder like we have after creating an alia
On Sep 23, 2008, at 2:32 PM, chaitanya pandit wrote:
I tried using symbolic link, but if the target file is moved, the
link fails, just curious to know of any reasons i should avoid
creating aliases?
What i need is the link should work even if the target is moved.
Because aliases are on
On Sep 23, 2008, at 2:13 PM, chaitanya pandit wrote:
I've been struggling with for quite a while now, what i want to
achieve is create an alias of a folder at some location.
You may be being tripped up by terminology. An "alias" is an opaque
data structure in memory. An "alias file" is a
I tried using:
OSErr FSNewAliasFromPath ( const char *fromFilePath, const char
*targetPath, OptionBits flags, AliasHandle *inAlias, Boolean
*isDirectory );
But i don't quite get how should i use the fromFilePath parameter,
say i want to create an alias for "Users/me/Documents/foo" at "Users/
On Sep 23, 2008, at 2:48 PM, chaitanya pandit wrote:
I tried using:
OSErr FSNewAliasFromPath ( const char *fromFilePath, const char
*targetPath, OptionBits flags, AliasHandle *inAlias, Boolean
*isDirectory );
But i don't quite get how should i use the fromFilePath parameter,
say i want to
Thanks for the input Ken,
Suppose the target file to which the symbolic link is pointing to is
moved, is there any way one can determine where it was moved or
deleted? Assuming the file was moved even when the app was not running?
On 24-Sep-08, at 2:10 AM, Ken Thomases wrote:
On Sep 23, 20
On Sep 23, 2008, at 4:04 PM, chaitanya pandit wrote:
Suppose the target file to which the symbolic link is pointing to is
moved, is there any way one can determine where it was moved or
deleted? Assuming the file was moved even when the app was not
running?
Generally, symbolic links don't
On 24-Sep-08, at 2:22 AM, Nick Zitzmann wrote:
On Sep 23, 2008, at 2:48 PM, chaitanya pandit wrote:
I tried using:
OSErr FSNewAliasFromPath ( const char *fromFilePath, const char
*targetPath, OptionBits flags, AliasHandle *inAlias, Boolean
*isDirectory );
But i don't quite get how shoul
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote:
It created an executable file with name foobar alias on desktop but
when i try to open it it says
"chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/
foobar\ alias ; exit;
-bash: /Users/chaitanya/Desktop/foobar alias: cannot e
On 24-Sep-08, at 3:32 AM, Nick Zitzmann wrote:
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote:
It created an executable file with name foobar alias on desktop but
when i try to open it it says
"chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/
foobar\ alias ; exit;
-bas
Ben,
On Sep 23, 2008, at 8:19 am, Benjamin Stiglitz wrote:
The problem I am having is that to drag out of the WebView the
panel has to be main (i.e. the close/minimize/zoom buttons are
filled in). However, if you hold down the command key, the drag
out of that window works fine.
Where d
What is the use of the new Leopard call [ABAddressBook addressBook]? I
played around with it, and it seems to be functionally equivalent to
[ABAddressBook sharedAddressBook].
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
At 15:12 -0700 23/09/08, [EMAIL PROTECTED] wrote:
>From: Ken Thomases <[EMAIL PROTECTED]>
>References: <[EMAIL PROTECTED]>
>In-Reply-To: <[EMAIL PROTECTED]>
>Date: Tue, 23 Sep 2008 15:40:47 -0500
>Message-ID: <[EMAIL PROTECTED]>
>
>Apple has never officially supported applications creating alias fi
Hello, all ...
I've a question -- if I have an NSData object with non-ASCII data in
it, will NSMutableURLRequest -setHTTPBody automatically URL-encode
it? I'm trying to POST some image data to a web server.
Regards,
John
Falling You - exploring the beauty of voice and sound
http://www.f
On Sep 23, 2008, at 5:54 PM, Rainer Brockerhoff wrote:
At 15:12 -0700 23/09/08, [EMAIL PROTECTED] wrote:
From: Ken Thomases <[EMAIL PROTECTED]>
Apple has never officially supported applications creating alias
files. In fact, the documentation often refers to them as "Finder
alias files" b
Chaitanya,
If you're working with aliases and Cocoa, take a look at the free
NDAlias classes. There are even methods to create alias files.
--
Sean McBride, B. Eng [EMAIL PROTECTED]
Rogue Research
On Sep 23, 2008, at 5:02 PM, Nick Zitzmann wrote:
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote:
It created an executable file with name foobar alias on desktop but
when i try to open it it says
"chaitanya-pandits-macbook:~ chaitanya$ /Users/chaitanya/Desktop/
foobar\ alias ; exit;
-ba
On Sep 23, 2008, at 5:44 PM, David Riggle wrote:
What is the use of the new Leopard call [ABAddressBook addressBook]?
I played around with it, and it seems to be functionally equivalent
to [ABAddressBook sharedAddressBook].
From the docs, the former gives you a new instance of an address
On Tue, Sep 23, 2008 at 7:14 PM, John Zorko <[EMAIL PROTECTED]> wrote:
> I've a question -- if I have an NSData object with non-ASCII data in it,
> will NSMutableURLRequest -setHTTPBody automatically URL-encode it? I'm
> trying to POST some image data to a web server.
I don't see why you could as
That's what I thought too, but it doesn't seem to work that way. I
took the sample app AddressBookCocoa, changed the sharedAddressBook
calls to addressBook, and the app performed exactly the same. Contacts
added to the "private" address book showed up in the Address Book
application, just a
On Tue, Sep 23, 2008 at 4:23 PM, Mattias Arrelid <[EMAIL PROTECTED]> wrote:
> Does anyone have a clue what I could do debug this? I'm really puzzled
> after having tried to figure out the cause this afternoon...
Sounds like it's related to Leopard's new Spotlight for Help feature
-- which, disappo
Hi list,
I am trying to save a PDF annotated using subclasses of PDFAnnotation
to an image (such as a png, jpg etc) or a PDF such that the
annotations are displayed. So the resulting image should be annotated.
I have tried a couple of routes such as trying to draw the annotations
on an in
Thanks for the explanations: it does make some kind of sense now.
The reason I was looking at both forms is that I want the myInt
property to be read-only, but I want the MyObject instance to be able
to set it. If I do this:
@property(readonly) NSInteger myInt;
I can't do this in M
I was working through the ³Using Tree Controllers With NSXML Objects².
http://developer.apple.com/documentation/Cocoa/Conceptual/NSXML_Concepts/Art
icles/UsingTreeControllers.html#//apple_ref/doc/uid/TP40003565
I have an XML file and have coded following the example referenced above and
all work
I'm working on a x-platform application that is written in Carbon and
we are moving it to cocoa. I have it using a native Cocoa run loop as
the main event loop. It is a nibless application. I jump through a few
hoops for that to work correctly. Now I'm experiencing some very
strange behavio
I'm trying to convert from Carbon to Cocoa for a number of reasons
which I won't go into here.
My application needs to set a timer that causes a function to be
called at a time in the future. This is non-repeating, and sometimes
has be immediate. I need it to be as efficient as possible,
It's my understanding that specifying an Autosave name and checking
"Column Information" to be autosaved in IB on an NSTableView should be
the same as sending the setAutosaveTableColumns:YES method to that
table. And for the most part they seem to be similar, except when it
comes to saving
On Sep 22, 2008, at 23:44 , D.K. Johnston wrote:
Thanks for the explanations: it does make some kind of sense now.
The reason I was looking at both forms is that I want the myInt
property to be read-only, but I want the MyObject instance to be
able to set it. If I do this:
@prope
you mean you want it to be read-only for other users, but you want the
object to be able to set it itself without jumping through hoops?
There's something about this in the properties description in the
objective-c documents.
What I've been doing for this (ie having semi-private properties
On Sep 22, 2008, at 8:44 PM, D.K. Johnston wrote:
Thanks for the explanations: it does make some kind of sense now.
The reason I was looking at both forms is that I want the myInt
property to be read-only, but I want the MyObject instance to be
able to set it. If I do this:
@prop
On Mon, Sep 22, 2008 at 8:44 PM, D.K. Johnston <[EMAIL PROTECTED]> wrote:
> Thanks for the explanations: it does make some kind of sense now.
>
> The reason I was looking at both forms is that I want the myInt property to
> be read-only, but I want the MyObject instance to be able to set it. If I d
On Sep 23, 2008, at 02:58 , Arun wrote:
Hi All,
I am a newbie to cocoa programming.
I have written a small program in which i will be loading a Custom
About
panel from another nib.
This launching of the panel works well only for the first time.
If i close the panel and try to launch for the
On Sep 23, 2008, at 19:20 , Dan Birns wrote:
I'm trying to convert from Carbon to Cocoa for a number of reasons
which I won't go into here.
My application needs to set a timer that causes a function to be
called at a time in the future. This is non-repeating, and
sometimes has be immedi
On Sep 23, 2008, at 02:58 , Arun wrote:
Hi All,
I am a newbie to cocoa programming.
I have written a small program in which i will be loading a Custom
About
panel from another nib.
This launching of the panel works well only for the first time.
If i close the panel and try to launch for the
Hi All,
I have a vertically laid out NSSplitView which is hosting two NSViews,
both of which contain CALayer instances. In the bottom view, there's
a scroll view - and I can drag stuff within the view - which in turn
causes the view to grow.
Sometimes, the splitview doesn't clip the CALa
Is it possible to take a CGLayer and turn it into a bitmap
representation?
Also, is it possible to grab a CGRect "subset" of a CGLayer and append
that to a new CGLayer, so that it isn't necessary to recalculate the
entirety of a new CGLayer?
Thanks,
Alex
__
On Sep 23, 2008, at 6:20 PM, Dan Birns wrote:
My application needs to set a timer that causes a function to be
called at a time in the future. This is non-repeating, and
sometimes has be immediate.
NSTimer is a good choice. Another thing to consider, if it meets your
needs, is -performS
On Sep 23, 2008, at 11:41 PM, rouanet brice wrote:
thanks, when I launch a simple app with this code it works :
#import
#import "MyOgView.h"
int main(int argc, char *argv[])
{
//use TransformProcessType to transform non gui processs in gui
process
//voir -[NSApplication runModal
I want to render a big PDF image into a small thumbnail image in a custom view.
In drawRect:
NSImageRep* pdfImageRep = [[pdfImage representations] lastObject];
[pdfImageRep drawInRect:thumbBounds];
This renders perfectly, however the operation is pretty costy as for
using in drawRect, so I want
On Sep 24, 2008, at 12:33 AM, Oleg Krupnov wrote:
What could be the problem?
Have you tried using -[NSGraphicsContext setImageInterpolation:] after
locking focus?
Cheers,
Ken
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not
On Sep 24, 2008, at 12:14 AM, chaitanya pandit wrote:
On 24-Sep-08, at 5:10 AM, Charles Srstka wrote:
On Sep 23, 2008, at 5:02 PM, Nick Zitzmann wrote:
On Sep 23, 2008, at 3:57 PM, chaitanya pandit wrote:
It created an executable file with name foobar alias on desktop
but when i try to o
On Sep 23, 2008, at 5:54 PM, Rainer Brockerhoff wrote:
(They were invented before Apple Events, after all ;-) )
This is actually not correct - alias files and Apple Events were both
introduced simultaneously in System 7.0.
Charles
___
Cocoa-dev
Yes, I tried it and it doesn't seem to have any effect.
I have just double-checked regarding - [NSBitmapImageRep
initWithFocusedViewRect]. For an experiment I saved the bitmap to a
tiff file right after capturing the bitmap from screen, and it appears
that the tiff is sharp, not blurry.
It looks
Eurica!
Two things were wrong:
1) There was a 0.5 pixel shift transform in my graphics context
imposed earlier in the stack. I use this to render bezier curves to
integer pixels, but for rendering bitmaps this offset needs to be
reset. After fixing this, however, there was still a little blur, bu
74 matches
Mail list logo