Re: Proper KVO with NSTreeController + NSOutlineView

2012-09-28 Thread Joe Wollard
On Sep 28, 2012, at 8:51 AM, Dave Keck wrote: >> I'd like to observe a notification when a user edits (renames) an item in >> the outline view that tells me the old and new values. I'm getting >> notifications, but the old and new values are always null. For what it's >> worth, I'm currently

Re: Proper KVO with NSTreeController + NSOutlineView

2012-09-28 Thread Joe Wollard
On Sep 28, 2012, at 8:33 AM, Alex Zavatone wrote: > > On Sep 27, 2012, at 10:42 PM, Joseph M. Wollard wrote: > >> I'm pretty sure I'm doing something wrong here. I have an NSTreeController >> bound to the 'value' of an NSOutlineView's table column. The >> NSTreeController's content is then b

Re: MKMapView: Can't keep annotations from flashing during an update. Ideas?

2012-06-26 Thread Joe Wollard
sible when zoomed out and more pins are visible when zoomed in. If that's similar to the problem you're trying to address, I'd be interested in your findings as I can't seem to come up with anything that doesn't involve a bunch of overhead and rect calculations. --- Jo

Question about FSMountServerVolumeSync

2012-06-19 Thread Joe Wollard
NSLog(@"Unable to mount %@", urlString); } else { CFShow((__bridge CFStringRef)mountPoint); } } return 0; } -- Joe Wollard ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or mo

Re: Question about sending to PHP from Obj-C

2011-08-04 Thread Joe Wollard
http://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/NSString_Class/Reference/NSString.html%23//apple_ref/occ/instm/NSString/writeToURL:atomically:encoding:error: I'd guess that you could create an NSURL object with the full GET string, then write an empty stri

Re: Custom autocompletion with NSTextField

2011-08-01 Thread Joe White
Hi Kyle, thanks for the reply. On 1 August 2011 01:12, Kyle Sluder wrote: > On Sun, Jul 31, 2011 at 4:29 PM, Joe White wrote: > > Hi all, > > > > I'm currently implementing custom autocomplete functionality into a > > NSTextField. I've managed so far t

Custom autocompletion with NSTextField

2011-07-31 Thread Joe White
field editor and the google results I've read have helped but not answered my problems. Thanks, Joe -- Joe White Production Department, RjDj Tel : +44 7515 731499 Reality Jockey Ltd. Floor B “The Mission” 55 Holywell Lane London EC2A 3PQ ___

Re: CGEventRef with function key

2011-07-21 Thread Joe Turner
would make it any different for Fn. Thanks, Joe > On Jul 21, 2011, at 5:22 PM, Joe Turner wrote: > >> So I've been having some issues with posting a CGEvent with a function key >> as a modifier (or flag). If I call CGEventSetFlags(eventDown, >> kCGEventFlagMa

CGEventRef with function key

2011-07-21 Thread Joe Turner
ey is not virtually pressed. As far as I can tell kCGEventFlagMaskSecondaryFn is for the function key modifier, so I'm not sure why this isn't working. Any help would be appreciated! Thanks, Joe Turner ___ Cocoa-dev mailing list (Cocoa-dev@

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
Oh man, this sounds exactly what I need. Thanks for the pointer! Cheers, Joe On 9 June 2011 15:37, Ross Carter wrote: > On Jun 9, 2011, at 6:11 AM, Joe White wrote: > > > I think it would solve all my problems if I was able to do > auto-completion, etc... with NSTextField. I do

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
pinion on which approach would be more suitable? (if it helps the view would look similar to this - http://rhoadley.org/images/screenshots/pd/anomap.gif) Overhead is also a concern. Thanks for the reply! Joe 2011/6/9 Gary L. Wade > If you're fine with a single line that grows hor

Re: Resizing custom subclassed NSTextView

2011-06-09 Thread Joe White
Hi Ross On 9 June 2011 01:51, Ross Carter wrote: > On Jun 8, 2011, at 7:19 PM, Joe White wrote: > > > Basically, the interface is separate editable objects that are usually > single symbols with a few arguments included. This means that the each > object is always one line hi

Re: Resizing custom subclassed NSTextView

2011-06-08 Thread Joe White
of the main canvas. Would you say I am taking the wrong approach? All I wish to do is to have multiple instances of an object each with its own resizable/auto completing text field as a subview. Thank you for the help, Joe On 8 June 2011 19:05, Ross Carter wrote: > > > You don't need to

Resizing custom subclassed NSTextView

2011-06-08 Thread Joe White
I'm not sure where I'm going wrong with this, any help or pointers would be much appreciated. Thanks, Joe -- Joe White Production Department, RjDj Tel : +44 7515 731499 Reality Jockey Ltd. Floor B “The Mission” 55 Holywell Lane London EC2A 3PQ

Re: Installing application on a network onto several computers

2011-05-19 Thread Joe Wollard
In a small scenario like that, you'd probably be pretty happy with something like Apple Remote Desktop (although it's expensive if this is a one off scenario). Basically you'd install ARD on the teacher's workstation and then push the pkg out to the rest of the classroom through that software.

Create pinch/magnify event

2010-08-20 Thread Joe Turner
nt to a CGEvent. So, I'm wondering if anyone has experience with doing this? What about for 4 finger swipes? If not, is there a way to create raw trackpad touches (pragmatically), so I can recreate a pinch? Thanks! Joe ___ Cocoa-dev mai

Re: CGEvent with double click

2010-08-19 Thread Joe Turner
Wow, when I glanced over that I assume the "state" would mean up or down, so I didn't look into it. Thanks so much man! I owe you one :) Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin reques

CGEvent with double click

2010-08-18 Thread Joe Turner
ventPost(kCGHIDEventTap, mouseEvent); CFRelease(mouseEvent); Thanks, Joe ___ 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 cocoa-dev-admins(at)lists.appl

Re: NSStatusItemthreading

2010-07-25 Thread Joe Turner
Hey, Thanks man! That worked perfectly :) Joe On Jul 25, 2010, at 7:35 PM, Graham Cox wrote: > > On 26/07/2010, at 4:53 AM, Joe Turner wrote: > >> I recently realized that when the user opens the NSStatusItem in my app, the >> main run loop gets blocked up until they cl

NSStatusItemthreading

2010-07-25 Thread Joe Turner
interactions in a new thread, however this didn't work. So, is there a way to thread the status item so I don't have to thread all of the tasks that might need to happen while the bar is open? Thanks, Joe ___ Cocoa-dev mailing list

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
Hey, Thanks! It seems that all I had to do sanitize was encode &'s <'s >'s "'s and ''s, and then just do my normal percent encoding, and everything is now working great! Thanks! Joe On Jul 23, 2010, at 2:11 PM, Kyle Sluder wrote: > On

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
ng, which (the only way I know how to do), has to be done with NSStrings. Joe On Jul 23, 2010, at 11:50 AM, Kyle Sluder wrote: > On Fri, Jul 23, 2010 at 9:34 AM, Joe Turner wrote: >> Hey, >> >> No one is requiring me to send a string–I do indeed send it as data, but I >

Re: NSPropertyListSerialization and string encoding

2010-07-23 Thread Joe Turner
&arg2=something...", and then do [dataUsingEncoding:allowLossyConversion:. Should I be doing this a better way? (I'm the one who created the web service, so if there's an issue with doing it this way, I can easily change it). Joe On Jul 23, 2010, at 11:31 AM, Kyle Sluder wrote:

NSPropertyListSerialization and string encoding

2010-07-22 Thread Joe Turner
x27;s. Is there any way I can use a different encoding or something else to keep the accents for the time being, and then filter them out when I create the post data with dataUsingEncoding:allowLossyConversion:? Thanks, Joe Turner Iced Cocoa ___ Coco

RE: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-03-01 Thread Joe Jones
Great, thanx! From: Jonathan Hendry [mailto:jonhen...@mac.com] Sent: Monday, March 01, 2010 3:15 PM To: Joe Jones Cc: cocoa-dev@lists.apple.com Developers Subject: Re: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session? Checking on my lsof -i

RE: Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-02-26 Thread Joe Jones
That's what I thought. Why? So we can limit certain functionality over a remote connection. We do this for Terminal Services connections on Windows and I was asked about doing it for Mac. Thanx, joe From: Matthew Lindfield Seager

Is there any Cocoa API (or other way) to determine if an application is running in a VNC or ARD session?

2010-02-26 Thread Joe Jones
Thanx, Joe ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http

Re: lastKeyViewTraversingSubviewsBeginningWithView

2010-02-22 Thread Joe Ranieri
front, and doesn't lazily create them or destroy them. So, there really are 5000+ subviews. You should take a look at the collection view's subviews to see. -- Joe Ranieri Thanks. It does seem to be the problem. In total, there are over 10,000 (6 per represented object) views being

Re: lastKeyViewTraversingSubviewsBeginningWithView

2010-02-21 Thread Joe Ranieri
a look at the collection view's subviews to see. -- Joe Ranieri ___ 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 cocoa-dev-admins(at)lists.appl

Re: Preventing system sleep

2010-02-16 Thread Joe Ranieri
On 2/16/10 4:18 PM, Laurent Daudelin wrote: On Feb 16, 2010, at 13:13, Joe Ranieri wrote: On 2/16/10 4:10 PM, Neil Allain wrote: On Feb 16, 2010, at 2:57 PM, Laurent Daudelin wrote: I'm working on a an app that at some point might start transferring a large file to a USB d

Re: Preventing system sleep

2010-02-16 Thread Joe Ranieri
il You should probably be using IOPMAssertionCreateWithName() instead if you can require 10.5+. This gives the system a lot more information about the intent of your code and the potential ability to show some nice UI to the user. -- Joe Ranieri ___

Mixing TableView Bindings

2010-02-07 Thread Joe
> >> Since the array controller's "object controller" can be set to a class or to >> an entity but not both, I don't see how managed and unmanaged data can be >> mixed. > > The short answer is: "Just do it". I do it all the time. As long as the > object is KVC compliant, it will work. > >

Mixing TableView Bindings

2010-02-05 Thread Joe
On Feb 5, 2010, at 9:52 AM, cocoa-dev-requ...@lists.apple.com wrote: > >> I have a NSTableView with a column of checkboxes. I have the checkbox value >> bound to an NSInteger instance in a class which is in an array bound as the >> content to an array controller. > > The checkbox cell should

Mixing TableView Bindings

2010-02-04 Thread Joe
Hello, I have a NSTableView with a column of checkboxes. I have the checkbox value bound to an NSInteger instance in a class which is in an array bound as the content to an array controller. When the program starts the column is filled with 16 rows and the checkbox is set to off. Other columns

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Joe The Programmer
On Dec 14, 2009, at 12:16 PM, Matthew Lindfield Seager wrote: > That belongs to the preceding LSTypeIsPackage key. Yea, I was still sleeping when I responded to that last post. ;) Turned out that resource CFBundleDisplayName/CFBundleDocumentTypes should not have even been in the plist file

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Joe The Programmer
On Dec 14, 2009, at 4:28 AM, Julien Jalon wrote: > It's not necessarily a memory management problem. As this happens very early > in the application launch, when Launch Services uses your Info.plist to > register the application, your problem might also be that an entry supposed > to be a stri

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-14 Thread Joe The Programmer
On Dec 14, 2009, at 12:52 AM, Kyle Sluder wrote: > Turning on GC is not the solution to your problem. Fixing your memory > management bugs is the solution. On Dec 14, 2009, at 12:54 AM, Joar Wingfors wrote: > For a trivial app it might be. For anything else, it would not be. GC and RC > are fu

Re: App Launches in Finder, Hangs While Launching in Debugger

2009-12-13 Thread Joe The Programmer
On Dec 14, 2009, at 12:06 AM, Joar Wingfors wrote: > That's almost certainly an indication of a memory management error in your > application. If you're not using Garbage Collection in your app, I'd suggest > that you troubleshoot this using zombies. Search for "NSZombieEnabled" to > find help

App Launches in Finder, Hangs While Launching in Debugger

2009-12-13 Thread Joe Programmer
effort to gain some insight into the problem and possible/probable areas of my project to focus on. What is also a bit disturbing about this, is that the debugger catches this exception, but Cocoa/OS does not?! Thanks, Joe ___ Cocoa-dev mailing li

Hang Initializing App

2009-12-11 Thread Joe Programmer
init code beyond the two breaks at objc_exception_throw, but never consistently, probably because memory is trashed. Might anyone offer any insight as to what might be going on and/or where to go from here? Thanks, Joe ___ Cocoa-dev mailing list (Cocoa-

kTISPropertyUnicodeKeyLayoutData Returns NULL

2009-08-25 Thread Joe Turner
d be used to get the data and then keycodes from a KCHR resource. So, is there any way around this? Cheers, Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Create VNC Client iPhone

2009-08-24 Thread Joe Turner
ooked around for any sample code for VNC, but cannot find any. So, how do I connect to a Mac with Screen-Sharing on (password set or not), and then how do I tell it to type something? I'm fairly new to VNC, so any help would be much appreciated

Re: Best Way to Simulate Keyboard

2009-08-22 Thread Joe Turner
But then I must have the CGKeyCode for the character i would like to post, which is what I'm trying to get away from. When I do "CGEventSetFlags" on an event I've set a unicode string for, it doesn't work. Joe On Aug 22, 2009, at 11:46 AM, Bill Cheeseman wrote:

Re: Best Way to Simulate Keyboard

2009-08-22 Thread Joe Turner
Hey, That works well, until I add modifiers. To do my modifiers i put the modifier keys down before the character part, but this doesn't seem to work when the command key is down or something :/ Is there any way to supply modifiers into a single CGEvent? Cheers, Joe Turner On A

Best Way to Simulate Keyboard

2009-08-21 Thread Joe Turner
PI's that can access them have been deprecated. So, I'm wondering, is there a better way to simulate a keyboard? Maybe with input methods or something? And if not, how can I access 'kchr' keyboard data? Cheers, Joe Turner ___

Re: Detect Keyboard Layout for CGKeyCodes

2009-08-20 Thread Joe Turner
if ((keyToCharData[k]) == theCharacter) { virtualKeyCode = k; found = true; } }

Re: Detect Keyboard Layout for CGKeyCodes

2009-08-19 Thread Joe Turner
GEvents? I just need it to be universal–This app is a background app, so the keystroke needs to be able to be inserted anywhere. Cheers, Joe Turner On Wednesday, August 19, 2009, at 07:30PM, "Harry Jordan" wrote: >I've not used CGEvents much.. (Once upon a time, hopefully

Detect Keyboard Layout for CGKeyCodes

2009-08-19 Thread Joe Turner
they have, and convert a CGKeyCode from a standard US keyboard to whatever keyboard they have? Any help would be much appreciated! :) Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments t

Re: Private copy not working correctly

2009-07-03 Thread Joe Turner
Thanks, this seems to work perfectly! I recently read about shallow and deep copies, but didn't see the initWithDictionary:copyItems: method. Thanks, Joe On Jul 2, 2009, at 6:51 PM, Adam R. Maxwell wrote: On Jul 2, 2009, at 12:05 PM, Joe Turner wrote: I'm trying to create a pr

Private copy not working correctly

2009-07-02 Thread Joe Turner
as it should. Then, when I change something in spacesData objectAtIndex:index], this private copy changes too. Doesn't "copy" create a private copy, or am I doing something wrong? Any help would be appreciated, Joe ___ Cocoa-dev mai

Re: Touchscreens and control scaling

2009-06-04 Thread Joe Ranieri
ays. From my limited testing, some small controls are a problem with a touch screen, but it depends on the accuracy of the touch screen and the ability of your user. -- Joe Ranieri ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please

Which is the event that when the mouse move out of the window area would response?

2009-04-21 Thread Joe Yi
hello all:I had searched the document of the NSWindow,but I can't find the event the would response when the mouse move out of the window area . Anyone can tell me which method I could use? thank you Joe YIK ___ Cocoa-dev mailing list (Coco

how to get the windows ‘s coordinate

2009-04-20 Thread Joe Yi
hello all:I have no way to get the app window 's coordinate 。please show me the detail method. thanks. Joe yik ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contac

How to control the window by cocoa

2009-04-15 Thread Joe Yi
hello everybody:These days I beginning to develop a application with xcode. the program confine the window,make it can‘t be resize. and limit the frame of the window .make it can't out of the area of the screen. When the border of the window touch the border of the screen. It'll come out a warn

NSKeyedUnarchiver "incomprehensible archive" error

2009-03-26 Thread Joe Turner
e is some data getting cut off/lost when sent. Is there a way to check if the data can be unarchived, and if not, to try again? Or, is there another way to get around this? Thanks! Any help would be much appreciated! Cheers, Joe Turner ___

titleView not centered

2009-03-26 Thread Joe Turner
happening? Right now I put some extra spaces at the end of the title to center it. Should i create a blank rightBarButtonItem? Thanks! Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to

Custom UIBarButtonItems

2009-03-24 Thread Joe Turner
nItem (BackBarButtonItem). Thanks! Joe ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscri

Re: UINavigationBar hidden in one view but not another

2009-03-24 Thread Joe Turner
Well, the issue is the first viewcontroller has a tableview, so it just (probably) should have the pushing animation. It would be weird if the tableview created a flip animation Joe On Mar 24, 2009, at 1:31 PM, Luke the Hiesterman wrote: Maybe you could consider doing something other than

UINavigationBar hidden in one view but not another

2009-03-24 Thread Joe Turner
of the 'slide' animation. Any help would be appreciated! Thanks! Joe ___ 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 cocoa-dev

Re: TXT Records with NSImages

2009-03-13 Thread Joe Turner
That's what I thought too. But how do you use the NULL record? Joe On Mar 13, 2009, at 7:36 AM, Keith Duncan wrote: Joe, That's a lot of data to be storing in the TXT record. I'd advise that you store it in the NULL record as iChat does for 'Bo

Re: TXT Records with NSImages

2009-03-13 Thread Joe Turner
NSLog(@"Data is not nil!"); [netService setTXTRecordData:data]; Joe On Mar 13, 2009, at 7:30 AM, Michael Ash wrote: On Fri, Mar 13, 2009 at 8:12 AM, Joe Turner wrote: Actually, I am converting it to NSData, and then adding it, and it still returns ni

Re: TXT Records with NSImages

2009-03-13 Thread Joe Turner
Actually, I am converting it to NSData, and then adding it, and it still returns nil Joe On Mar 13, 2009, at 3:27 AM, Alexander Spohr wrote: Just got recently into that pit myself. Read the docs _very_ carefully for this one. (And file a complaint at the bottom of the doc’s page

TXT Records with NSImages

2009-03-12 Thread Joe Turner
read that. Thanks! Joe ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update you

Re: Partially Transparent windows

2009-01-29 Thread Joe Turner
Thanks! Works perfectly! I didn't expect it to be that easy :) Cheers, Joe Turner On Jan 29, 2009, at 4:34 PM, Steve Christensen wrote: On Jan 29, 2009, at 2:04 PM, Joe Turner wrote: I've noticed that some applications I see have partially transparent windows. What I mean by thi

Partially Transparent windows

2009-01-29 Thread Joe Turner
o this, or if you must subclass NSWindow or something of the sort. Cheers, Joe Turner ___ 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 cocoa-dev

Re: Using the security framework

2009-01-24 Thread Joe Turner
But you can also code sign nowadays On Jan 24, 2009, at 11:54 PM, Chris Hanson wrote: On Jan 24, 2009, at 6:29 PM, Michael Ash wrote: On Sat, Jan 24, 2009 at 6:08 PM, Chris Hanson wrote: Among other things, to be truly secure you must use a secure installation mechanism. Do not write your

Re: Using the security framework

2009-01-24 Thread Joe Turner
So, you are saying that I must create an install tool, that installs my utility that will run as root? On Jan 24, 2009, at 2:23 PM, Chris Hanson wrote: The proper way to construct everything you've described is discussed in the Authorization Services Programming Guide. Authorization

Re: Using the security framework

2009-01-24 Thread Joe Turner
do this! This is just my guess. But it sounds fairly right :) Cheers, Joe Turner On Jan 24, 2009, at 6:47 AM, Michael Ash wrote: On Fri, Jan 23, 2009 at 10:59 PM, Joe Turner wrote: Okay, so, it seems everyone was right :) I went to cocoabuilder to find some of the responses to this, t

Re: Using the security framework

2009-01-24 Thread Joe Turner
Cool, thanks! Then I now have another question: Why not just run chmod on my utility when it's 'unlocked', and change the userID to 0. Then when it's locked, change it back to 501? Or, is this exactly what AEWP() will do? Thanks! Cheers, Joe Turner On Jan 24, 2009,

Re: Using the security framework

2009-01-23 Thread Joe Turner
some sort of lock-unlock thing, and then I would be pretty sure, but is there anyway to know for sure? And, is there a way to take SUID away from it? So, if I want to lock it, it would work. Thanks everyone! Cheers, Joe Turner On Jan 22, 2009, at 4:57 PM, Nick Zitzmann wrote: On Jan 22

Re: Using the security framework

2009-01-22 Thread Joe Turner
On Jan 22, 2009, at 4:57 PM, Nick Zitzmann wrote: On Jan 22, 2009, at 4:09 PM, Joe Turner wrote: I see. Then, how would you suggest to create a cloner/deleter, if it needs root privileges, but cannot use the security framework? I didn't say you couldn't use the security framewo

Re: Using the security framework

2009-01-22 Thread Joe Turner
Thanks again for the speedy responses! On Jan 20, 2009, at 1:47 AM, Nick Zitzmann wrote: On Jan 19, 2009, at 7:56 PM, Joe Turner wrote: That makes sense, but then how does an app like SuperDuper! do it. You click the lock, enter your password, and then you don't need to enter

CALayer autoresizing behaviour

2009-01-21 Thread Joe Wildish
rred. Is anyone able to point out what I'm doing wrong? Many thanks, -Joe ___ 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 cocoa-dev-admins(at)lis

Re: Using the security framework

2009-01-19 Thread Joe Turner
On Jan 6, 2009, at 10:45 AM, Nick Zitzmann wrote: On Jan 3, 2009, at 6:50 PM, Joe Turner wrote: I am making a hard drive cloner/backuper, and to do some deleting and copying, I need to use the security framework. What I need to be able to do is have the user type in their password one

Re: CALayer unwanted blurring

2009-01-19 Thread Joe Wildish
Many thanks David, this seems to have solved my problem! Regards, -Joe On 19 Jan 2009, at 18:21, David Duncan wrote: Your suffering from the same problem as above. The frame origin is not what matters, but rather the layer's position (all aspects of the frame are synthesized from

CALayer unwanted blurring

2009-01-17 Thread Joe Wildish
lp would be appreciated. Thanks in advance, -Joe ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubsc

Re: what the hell is Error (1007) creating CGSWindow?

2009-01-14 Thread Joe Ranieri
]; NSImage* image = [[NSImage alloc] initWithSize:imgSize]; You're leaking this NSImage. -- Joe Ranieri ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: Custom drawn menus?

2009-01-14 Thread Joe Ranieri
c. It is possible to do using an undocumented method, but that's not on-topic for this list. -- Joe Ranieri ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the

Using the security framework

2009-01-06 Thread Joe Turner
admin privileges. Or, could I somehow use NSFileManager in an authorized state. Thanks for any help! Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Re: Text track in QTMovie

2008-12-20 Thread Joe Turner
UInt8 *chars = malloc(size) char *chars = malloc(size). But still no luck. I have a feeling that it has to do with how I initialize it. K&R is coming this week, so, that should help me too (thanks for the recommendation!!). Thanks a ton! Joe On Dec 16, 2008, at 1:28 PM, douglas welton wr

Re: Text track in QTMovie

2008-12-16 Thread Joe Turner
create a new project and do this and tell you the debugger contents too though, if needed. I am used to objective-c, and some of these C calls can confuse me sometimes. Like, is chars[] the same thing as a UInt8? Thanks for your help, Joe On Dec 14, 2008, at 8:54 PM, douglas welton wrote

Re: Text track in QTMovie

2008-12-14 Thread Joe Turner
char chars[size]; GetMediaSample2(media, &chars, size, NULL, timeValue, NULL, NULL, NULL, nil, nil, 1, NULL, NULL); NSString *string = [[NSString alloc] initWithBytes:chars length:size encoding:NSUTF8StringEncoding]; NSLog(@"String: %@", string); Thanks, Joe On Dec 14, 2

Re: Text track in QTMovie

2008-12-14 Thread Joe Turner
Yeah, I should have defined easy! This helps a lot :) Thanks! Joe On Dec 14, 2008, at 7:03 PM, douglas welton wrote: Hi Joe, Since you didn't define "easy" or tell me what you'd tried, then I'll have to make some assumptions about what you know. I will assu

Text track in QTMovie

2008-12-14 Thread Joe Turner
I have a QTMovie (that is valid), and it has a text track. I am wondering if there is any easy way to get the contents of the text track into an NSString. Thanks, Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post

Customizing menu drawing

2008-12-03 Thread Joe Ranieri
that's not supported and will break in 64-bit... Does anyone have any ideas? -- Joe Ranieri ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderato

Authorized Copy/Erase (NSFileManager)

2008-11-29 Thread Joe Turner
hanks ---- Joe Turner NiceMac LLC programmer ___ 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 cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update

Re: Number of Files on Volume

2008-11-26 Thread Joe Turner
the File Manager). Have a look at getattrlist() and the ATTR_VOL_FILECOUNT attribute (the man page provide a sample that show how to retreive the file count). Le 26 nov. 08 à 15:53, Joe Turner a écrit : I'm just worried that it will be deprecated soon with the release of Snow Leopard;

Re: Number of Files on Volume

2008-11-26 Thread Joe Turner
h the CoreServices way ? (ie using FSGetVolumeInfo). Le 26 nov. 08 à 15:19, Joe Turner a écrit : Okay, maybe I spoke too soon... It worked twice. To get the number of files, I am doing this now: - (NSNumber *)fileCount { NSDictionary *attributes = [[NSFileManager defaultMa

Re: Number of Files on Volume

2008-11-26 Thread Joe Turner
even supposed to work? Thanks! On Nov 26, 2008, at 5:53 AM, Graham Lee wrote: On 26/11/2008 08:28, "Andrew Farmer" <[EMAIL PROTECTED]> wrote: On 25 Nov 08, at 16:44, Joe Turner wrote: I have ben trying to find a good way to get an accurate count of files on a

Re: Number of Files on Volume

2008-11-26 Thread Joe Turner
08:28, "Andrew Farmer" <[EMAIL PROTECTED]> wrote: On 25 Nov 08, at 16:44, Joe Turner wrote: I have ben trying to find a good way to get an accurate count of files on a Volume. Using a NSDirectoryEnumerator takes way too long (a couples minutes), so, I figured out how to do it o

Number of Files on Volume

2008-11-26 Thread Joe Turner
I have ben trying to find a good way to get an accurate count of files on a Volume. Using a NSDirectoryEnumerator takes way too long (a couples minutes), so, I figured out how to do it on the old Carbon FileManager using: FSVolumeInfo info; FSRef pathRef; FSCatalogInfo catInfo; const char *

Re: [Q] Hiding zoom & minimize buttons

2008-10-22 Thread Joe Strout
So, AFAIK, Apple doesn't allow you to do it. Best, - Joe ___ 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 cocoa-dev-admins(at)lists.apple.com

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Joe Keenan
On Oct 2, 2008, at 10:01 AM, Sherm Pendley wrote: On Thu, Oct 2, 2008 at 9:20 AM, Joe Keenan <[EMAIL PROTECTED]> wrote: On Oct 1, 2008, at 1:25 PM, Shawn Protsman wrote: NSArray *args = [NSArray arrayWithObject:[hostField stringValue]]; You forgot the nil argument at the

Re: Cocoa Programming iPing exercise

2008-10-02 Thread Joe Keenan
'Debugger Console' going to gdb. With the above modification, I can return setLaunchPath to /sbin/ping and the program works fine. You forgot the nil argument at the end of the array. Try: NSArray *args = [NSArray arrayWithObjects:[hostField stringValue], nil]; joe __

Re: design pattern for data acquisition in background thread?

2008-09-27 Thread Joe Keenan
On Sep 27, 2008, at 4:25 PM, Chris Hanson wrote: On Sep 26, 2008, at 3:37 PM, Joe Keenan wrote: Right now, the app controller object sends a message to the device controller, requesting the value of a specified variable. The device controller does the telnet command to get it, returns

design pattern for data acquisition in background thread?

2008-09-27 Thread Joe Keenan
object talking to the device into another thread so the main window can take UI events. I'm thinking I can package up the variable requests into a dictionary so that the device controller can do a bunch at once. Then the main thread can do all the updates from the dicti

[MEET] Singapore CocoaHeads TODAY (25 July 08)

2008-07-24 Thread Joe Goh
opment tools on the Mac. Please take note that Apple's NDA on the iPhone/iPod Touch SDK has *not* been lifted. See you there! Joe ___ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to t

Re: Learning How to Program in Objective-C

2008-07-11 Thread Joe Kavanagh
ming Langauge" and print a copy (I recommend getting it spiral bound). While learning it's a great reference to help refresh you when you get stuck. If you go with the Spiral Bound version at Kinko's double sided it should run about $10 to $15. -Joe Kavanagh _

Re: any data on Mac OS X 10.5 install base?

2008-05-21 Thread Joe Ranieri
Is there any data on the install base? What is the minimal set of platforms and OS versions that I need to support in order to make any meaningful commercial software There's also Adium's statistics from its auto-updater: http://www.adiumx.com/sparkle/ Joe Ranieri Lead Magician

[MEET] Singapore CocoaHeads TONIGHT

2008-05-15 Thread Joe Goh
iPod Touch) as well as development tools on the Mac. For more information about Singapore CocoaHeads, please visit http://cocoaheads.org/sg/Singapore/index.html Cheers, Joe Goh FunkeeMonk Technology http://www.funkeemonk.com/ ___ Cocoa-dev mailing

  1   2   >