Kyle,
you could be right, but, if I put the program name as first argument, it
doesn't work. Please note I launch the /usr/bin/hdiutil and not the shell.
args = [NSArray arrayWithObjects:@"mount", @"-stdinpass", dmgPath, nil];
[aTask setLaunchPath:@"/usr/bin/hdiutil"];
and this way it works a
Hi,
I'm "resurrecting" this old thread (from late 2007!) to see whether
someone succeeded in reproducing Apple Mail's ability to turn any
given token into "editable plain text" mode. (I'm here talking about
the behaviour of Apple Mail's "Edit Address" token-based menu item.)
Alexander Griekspoor
I have a Mozilla plugin which puts up a separate window for login information.
It seems to work fine, it gets keyboard events like typing and hitting
return to hit the default button. HOWEVER, it doesn't seem to get cut
and paste events. When I hit Cmd-v, the edit menu flashes, but nothing
happ
Howdy all,
Kent's solution is also another good work around -- calling setHighlighted:NO
on the cell will cause it to not draw highlighting, which is the source of the
problem.
So, to summarize, there are two ways to fix this with public API:
1. In the table's delegate, -willDisplayCell: metho
On 14 Mar 2010, at 9:47 PM, mmalc Crawford wrote:
> On Mar 14, 2010, at 7:21 pm, Dave Fernandes wrote:
>
>> So my question is - how do you detect this before loading the file? I'm
>> aware of the sqlite3 PRAGMA integrity_check, but there does not seem to be a
>> C API for this. Any pointers?
>>
On Mon, Mar 15, 2010 at 3:34 AM, gMail.com wrote:
> you could be right, but, if I put the program name as first argument, it
> doesn't work. Please note I launch the /usr/bin/hdiutil and not the shell.
I'm not right. I was thinking of the exec* functions, which require
you to pass the program nam
On Mon, Mar 15, 2010 at 12:33 AM, Kyle Sluder wrote:
> On Sun, Mar 14, 2010 at 9:50 PM, Michael Ash wrote:
>> NSTask is also not like calling the exec family of functions. NSTask
>> implicitly passes the target path as the first argument, and puts your
>> arguments starting with argv[1].
>
> Durr
Not trying to be pessimistic here, just honest, but it seems like this is a
problem with Mozilla's (Firefox's? Thunderbird's? which app are we talking
about here?) plugin-architecture system.
The shortcuts Cmd+C and Cmd+V in the Edit menu link to the First Responder,
and typically any text field (
On 14 March 2010 15:23, Andreas Mayer wrote:
>
> Am 14.03.2010 um 04:14 Uhr schrieb Igor Mozolevsky:
>
>> I've got a few *nix libs to flesh out with some Cocoa UI goodness and
>> would welcome suggestions for a good way to do a bunch of controls:
>
> Instead of describing the proposed look of your
> On 14 Mar 2010, at 9:47 PM, mmalc Crawford wrote:
>
>> On Mar 14, 2010, at 7:21 pm, Dave Fernandes wrote:
>>
>>> So my question is - how do you detect this before loading the file? I'm
>>> aware of the sqlite3 PRAGMA integrity_check, but there does not seem to be
>>> a C API for this. Any poi
> My custom NSManagedObject subclass uses awakeFromInsert and awakeFromFetch
> to setup custom object to ivar. This works as expected, but when I fetch the
> same object on secondary thread (in NSOperation), the ivar remains nil as
> awakeFromFetch is not sent...
>
> Is NSManagedObject's awakeFrom
> One of the other things I had been working on must have fixed the underlying
> problem, and my implementation of identifier and setIdentifier were actually
> causing this issue. I completely removed those two methods (which is of
> course going directly against the documentation at the top of
Thanks for everyone's feedback. I'm always very happy to have ignorance on my
part removed!
As far as interface is concerned yes I completely respect the fact that it's
there to hide details and help us focus on behavior not implementation. And
yes I'm sort of kicking myself for not realizin
Am 14.03.2010 um 17:51 Uhr schrieb Igor Mozolevsky:
Picture a warehouse [...]
It is not clear to me why you think that you need graphical
representations for your objects.
Wouldn't simple lists of text work at least as good?
But if I really wanted to have those controls, I'd probably buil
On Mon, Mar 15, 2010 at 1:11 PM, Andrew James wrote:
> Thanks for everyone's feedback. I'm always very happy to have ignorance
> on my part removed!
>
> As far as interface is concerned yes I completely respect the fact that
> it's there to hide details and help us focus on behavior not
> implem
On Mar 15, 2010, at 1:11 PM, Andrew James wrote:
That being said, once containers get large, understanding the Big O
notation for operations can become important factors in choosing one
implementation over another. One of the things I do like about STL
( don't want to digress too far in t
On 15 March 2010 20:17, Andreas Mayer wrote:
>
> Am 14.03.2010 um 17:51 Uhr schrieb Igor Mozolevsky:
>
>> Picture a warehouse [...]
>
> It is not clear to me why you think that you need graphical representations
> for your objects.
> Wouldn't simple lists of text work at least as good?
Nowhere nea
Instead of passing my operation a target and selector, is there any way I can
just pass it a block, but then have it execute that block on the main thread?
TIA,
Rick
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requ
On Mon, Mar 15, 2010 at 2:32 PM, Rick Mann wrote:
> Instead of passing my operation a target and selector, is there any way I can
> just pass it a block, but then have it execute that block on the main thread?
[[NSOperationQueue mainQueue] addOperationWithBlock: ^{
...
}];
or:
dispatch_asy
Thanks!
On Mar 15, 2010, at 14:35:39, Clark Cox wrote:
> On Mon, Mar 15, 2010 at 2:32 PM, Rick Mann wrote:
>> Instead of passing my operation a target and selector, is there any way I
>> can just pass it a block, but then have it execute that block on the main
>> thread?
>
> [[NSOperationQueu
Oh, hmm. I guess my blocks can't receive parameters in this case.
On Mar 15, 2010, at 14:35:39, Clark Cox wrote:
> On Mon, Mar 15, 2010 at 2:32 PM, Rick Mann wrote:
>> Instead of passing my operation a target and selector, is there any way I
>> can just pass it a block, but then have it execute
Oh! Sorry for the noise, but I think I can do this:
[[NSOperationQueue mainQueue] addOperationWithBlock: ^{
myProvidedBlock(param1, param2);
}];
On Mar 15, 2010, at 14:35:39, Clark Cox wrote:
> On Mon, Mar 15, 2010 at 2:32 PM, Rick Mann wrote:
>> Instead of passing my operation a target and
Correct, because when you dispatch a block to a queue, the queue has no
parameters to give to the block. It also has no place to return to. Hence the
block signature is "void (^)(void)".
Dave
On Mar 15, 2010, at 3:43 PM, Rick Mann wrote:
> Oh, hmm. I guess my blocks can't receive parameters
Indeed, such is the power of blocks :)
On Mon, Mar 15, 2010 at 2:45 PM, Rick Mann wrote:
> Oh! Sorry for the noise, but I think I can do this:
>
> [[NSOperationQueue mainQueue] addOperationWithBlock: ^{
> myProvidedBlock(param1, param2);
> }];
>
>
> On Mar 15, 2010, at 14:35:39, Clark Cox wrote
Then again, what I was doing before was really:
[mTarget performSelectorOnMainThread: mSelector withObejct: data waitUntilDone:
true];
which I don't see how to do with 1[addOperationWithBlock:];
On Mar 15, 2010, at 14:46:28, Clark Cox wrote:
> Indeed, such is the power of blocks :)
>
> On Mon
Yep, that's legal.
Dave
On Mar 15, 2010, at 3:45 PM, Rick Mann wrote:
> Oh! Sorry for the noise, but I think I can do this:
>
> [[NSOperationQueue mainQueue] addOperationWithBlock: ^{
> myProvidedBlock(param1, param2);
> }];
smime.p7s
Description: S/MIME cryptographic signature
You could do:
NSOperation *op = [NSBlockOperation blockOperationWithBlock: ^{
...
}];
[NSOperationQueue mainQueue] addOperations: [NSArray arrayWithObject:
op] waitUntilFinished: YES]
or:
dispatch_sync(dispatch_get_main_queue(), ^{
...
});
but be very careful that you aren't already run
You could put your block into an NSBlockOperation, and then use the queue's
addOperations:waitUntilFinished: method to execute it.
Cheers,
Dave
On Mar 15, 2010, at 3:47 PM, Rick Mann wrote:
> Then again, what I was doing before was really:
>
> [mTarget performSelectorOnMainThread: mSelector w
Yep, thanks to both of you for that insight. Interesting there's not a
single-block version of that call.
On Mar 15, 2010, at 14:58:39, Dave DeLong wrote:
> You could put your block into an NSBlockOperation, and then use the queue's
> addOperations:waitUntilFinished: method to execute it.
>
>
On 15 Mar 2010, at 21:47, Rick Mann wrote:
> Then again, what I was doing before was really:
>
> [mTarget performSelectorOnMainThread: mSelector withObejct: data
> waitUntilDone: true];
In which case:
NSBlockOperation *blockOperation = [NSBlockOperation blockOperationWithBlock:^ {
...
I have a view in a window with a tracking area set up.
- (void)initializeTracking
{
NSRect rect = [self frame];
rect.origin.x = 0.0;
rect.origin.y = 0.0;
_trackingArea = [[NSTrackingArea alloc] initWithRect:rect
options:(NSTrackingMouseEnteredAndExited | NSTrackingMouseMoved
> Not necessarily true. While you are free to specify a delegate as
> NSObject , it is not standard convention. The convention
> for delegates is: id.
As I recall, sending variables of type id useful messages like
retain and release generate a compiler warning, whereas NSObject
are fine.
I cou
On Mar 15, 2010, at 3:22 PM, Jeff Laing wrote:
> As I recall, sending variables of type id useful messages like
> retain and release generate a compiler warning, whereas
> NSObject are fine.
>
> I could be wrong on this, but I definitely recall thinking it was a stupid
> compiler behavior.
Th
Just for reference's sake:
@interface NSObject (BlockOnMainThread)
- (void)performBlockOnMainThread:(void(^block)());
@end
@interface NSObject (BlockOnMainThreadPrivate)
- (void)performBlock:(void(^block)());
@end
@implementation NSObject (BlockOnMainThread)
- (void)performBlockOnMainThread
Am 15.03.2010 um 23:22 schrieb Jeff Laing:
> As I recall, sending variables of type id useful messages like
> retain and release generate a compiler warning, whereas
> NSObject are fine.
>
> I could be wrong on this, but I definitely recall thinking it was a stupid
> compiler behavior.
You c
> > I could be wrong on this, but I definitely recall thinking it was a
> stupid compiler behavior.
>
> This is because you didn't declare your protocol as extending the
> NSObject protocol. If you do something like this:
>
> @protocol MyProtocol
>
> Then you can call all the NSObject stuff with
On Mar 15, 2010, at 3:35 PM, David Duncan wrote:
> On Mar 15, 2010, at 3:22 PM, Jeff Laing wrote:
>> As I recall, sending variables of type id useful messages like
>> retain and release generate a compiler warning, whereas
>> NSObject are fine.
>>
>> I could be wrong on this, but I definitely re
On Mar 15, 2010, at 4:32 PM, Rick Mann wrote:
> Instead of passing my operation a target and selector, is there any way I can
> just pass it a block, but then have it execute that block on the main thread?
Note that the methods listed so far will cause a deadlock if called from the
main thread
On Mar 15, 2010, at 3:49 PM, Jeff Laing wrote:
> But my protocol only wanted to define the methods in my protocol - a nice
> clean Interface definition that's independent of all other definitions.
> After all, Apple might add some non-optional methods to NSObject (ok, that's
> unlikely) that a
On Mar 15, 2010, at 15:18, Richard Somers wrote:
> 1. With the mouse inside the view, a keyboard shortcut is entered to bring up
> the panel.
>
> 2. Move the mouse outside the view, and then close the panel (with keyboard
> shortcut, window close box, or with the menu, it does not matter).
>
>
Hi all,
Here is the dumb question for the day.
I have a coredata backed UITableView. I populate a NSFetchedResultsController
and use that to source the rows and sections etc. All works well.
That is until I go to delete an item from the table.
- (void)tableView:(UITableView *)tableView
commi
On Mar 15, 2010, at 5:33 pm, Damien Cooke wrote:
> [self.myTableView deleteRowsAtIndexPaths:[NSArray
> arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
>
Why are you doing this rather than (in addition to? which if so would probably
be the cause of the problem) s
Is there a way (in a Core Data entity) to make an attribute that's
like a relational DB "autoincrement" field? Or, failing that, does an
object of class (or subclass) NSManagedObject inherit a "unique"
UInt32 value that can reliably differentiate it from any other
instance being managed by
On 2010-03-15, at 3:30 PM, Ben Trumbull wrote:
> Running an integrity check can be useful if you have previously gotten a
> corrupt db error back from fetching or saving, or your app previously
> crashed, or you have some other active indicator it might be worthwhile.
> However, it's quiet ex
On Mar 15, 2010, at 7:49 PM, Dave Fernandes wrote:
>
> On 2010-03-15, at 3:30 PM, Ben Trumbull wrote:
>
>> Running an integrity check can be useful if you have previously gotten a
>> corrupt db error back from fetching or saving, or your app previously
>> crashed, or you have some other activ
When editing cell in the last column of NSTableView, pushing "Tab" button just
ends editing. Is there any way to change it's default behavior ? I want it to
go to the first (or second) cell in the next
row.___
Cocoa-dev mailing list (Cocoa-dev@lists.a
What I really need to know is how many developer seats each program
gets. I need for three of us to be able to do our own builds, and for
us all to be able to install on our own machines. My two QA people
are in other cities, so I can't do it for them.
On Sat, Mar 13, 2010 at 4:59 AM, Alexander
On Sun, Mar 14, 2010 at 9:33 AM, Scott Andrew
wrote:
> This is where source control comes in handy. Even if its using git to keep
> source control local in the project folder.
I don't know about git, but with Subversion one can install a
post-commit hook that runs the hot-backup.py script to ba
On Sun, Mar 14, 2010 at 12:22 PM, gMail.com wrote:
> I can't find a way in Cocoa to mount a dmg disk.
> So I would try to call the shell through a NSTask.
I think you really want to do that via the APIs in the Disk
Arbitration framework.
Unfortunately it's rather poorly documented, but it does w
On Sun, Mar 14, 2010 at 6:42 PM, Kyle Sluder wrote:
> This is incorrect. Unix convention requires the program name be the
> first argument.
Just to clarify, there are a couple reasons for this.
The first is that one can use a single binary to implement more than
one command line program. Which
Hi,
it says in the NSHTTPCookieStorage class reference:
"NSHTTPCookieStorage implements a singleton object (shared instance) that
manages the shared cookie storage. These cookies are shared among all
applications and are kept in sync cross-process."
I need the opposite thing.
Is it possible t
On Mon, Mar 15, 2010 at 10:15 AM, Steven Degutis
wrote:
> In my experience, Firefox (and thus
> probably other Mozilla apps) isn't even a native Cocoa app, it just pretends
> to be one, so I wouldn't doubt it if it doesn't even *have* a Responder
> Chain.
I am quite certain that none of the Mozil
I have two views in a window content view.
One view is custom the other is an NSTabView containing two items.
Each of these three views contain actions for menu items.
They do not get first responder until they are clicked in.
Can all three views be active in the responder chain without having
Thanks Scott,
Do you have a link for this example?
Thanks
Nick
Sent from my iPhone
On 14 Mar 2010, at 08:19, Scott Anguish wrote:
On Mar 13, 2010, at 3:43 AM, Nick Rawlins wrote:
Hi,
I would like to populate a TableView with data from a web service.
I would also like to send requests b
On 16/03/2010, at 8:21 AM, k...@highrolls.net wrote:
> Can all three views be active in the responder chain without having to first
> click the view?
Only if they have a parent-child relationship. If they are siblings, then no.
(Obvious really, if you had two side-by-side views both "first" r
> Is there a way (in a Core Data entity) to make an attribute that's
> like a relational DB "autoincrement" field? Or, failing that, does an
> object of class (or subclass) NSManagedObject inherit a "unique"
> UInt32 value that can reliably differentiate it from any other
> instance being m
On Mar 15, 2010, at 5:50 AM, Horst Jäger wrote:
> Is it possible to write an App so that the cookies it receives are
> Is it possible to make a cookie absolutely safe, so that it can only by
> accessed my app?
OS X or iPhone? On iPhone, I believe that cookies are not shared between apps.
—Jen
Yes, the exception occurs when the UI attempts to fault in an object for
display. (The display code coalesces updates, which is why the stack trace
starts with __NSFireDelayedPerform ).
On 2010-03-15, at 11:03 PM, Ben Trumbull wrote:
>
> You should generally get an NSError with the code that i
On Mar 14, 2010, at 9:21 AM, Don Quixote de la Mancha wrote:
> What I really need to know is how many developer seats each program
> gets. I need for three of us to be able to do our own builds, and for
> us all to be able to install on our own machines. My two QA people
> are in other cities,
On Mar 15, 2010, at 15:18, Richard Somers wrote:
1. With the mouse inside the view, a keyboard shortcut is entered to
bring up the panel.
2. Move the mouse outside the view, and then close the panel (with
keyboard shortcut, window close box, or with the menu, it does not
matter).
3. Mov
60 matches
Mail list logo