I can't
find anything in google.
Kind Regards,
Tom Dalling
___
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.app
I've got around it by implementing a kind of "man in the middle"
subclass of NSPredicateEditorRowTemplate. I set the class of the row
template to my subclass in IB and it automatically adds the "ANY"
modifier to whatever is already configured. It removes the "ANY"
modifier from the predicat
quot; would be better? Something to
remember for the future.
Tom
2009/9/14 Dave Keck
> > using NSTask, or something else?
>
> Woops, missed your subject line; NSTask, got it. But yes, I would see
> if you're able to read the executable as plain data, using NSData's
> data
Hi everyone,
I'm wondering if there is a way I can control which row template gets
added when the user clicks the '+' button on an NSPredicateEditor. The
template chosen seems to be random, but I want it to be a specific one
for user convenience.
Kind
happens in a NSTextView (such as a window's field editor).
Is this a bug in NSTextView or am I missing something?
Kind regards,
Tom
Vigital
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderato
On 12/02/2009, at 1:06 PM, Graham Cox wrote:
On 12 Feb 2009, at 1:59 pm, Tom wrote:
Is this a bug in NSTextView or am I missing something?
Have you actually set the next responder of the field editor/text
view? I think you have to actually do that explcitly (-
setNextResponder
On 13/02/2009, at 1:58 AM, Ross Carter wrote:
On Feb 11, 2009, at 10:21 PM, Tom wrote:
However, I've found that when an NSTextView receives a keyDown
event that doesn't handle, it doesn't bother to send the event down
the responder chain and just calls NSBeep().
I ex
[subpredicates addObject:[[single copy] autorelease]];
NSPredicate* compound = [NSCompoundPredicate
orPredicateWithSubpredicates:subpredicates];
[m_predicateEditor setObjectValue:compound];
}
Am I doing something wrong?
--Tom
___
Coc
On 03/07/2009, at 12:26 PM, Tom wrote:
Hi everyone,
I'm either doing something wrong, or I've found a bug in
NSPredicateEditor.
Whenever I use setObjectValue: on the NSPredicateEditor, it displays
the new predicate, but if I change a couple of the operators (is,
contains, b
Controller) with controller key "content" and model
key "name"
However the label shows nothing no matter what selection is there.
NSArrayController's selection is properly updated - if I bind the label to
it's selection.name directly it works. What am I missing?
Thanks, T
as to what could be the culprit. Any more
ideas?
Tomaz
2009/12/23 Quincey Morris
> On Dec 23, 2009, at 00:10, Tom wrote:
>
>
> Did you try binding the label to controller key "selection" in the object
> controller, instead of "content"? It ought to be the same thin
x27;s selection. Any help would be appreciated.
Thanks, Tom
___
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/Uns
NSLog(@"I found home, %@", obj);
}
*/
}
I hope the example helps, thanks,
tom
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Co
ut when the same binary is run on Leopard, the spaces are just
gone. You get dates like "January2008", unless you delimit w/ non-
whitespace.
I've cobbled together a very simple test app and put the source up at
http://people.omnigroup.com/tom/NSTokenField.zip. It just
p
= [searchField frame];
NSSize cellSize = [[searchField cell]
cellSizeForBounds:searchFrame];
searchFrame.size.height = cellSize.height;
[searchField setFrame:searchFrame];
If you don't set the font first, cellSizeForBounds: doesn't give you
the size you want.
-Tom
On Mar 10,
quite that much) and show up in the token
field w/ a lozenge around them.
The test app at http://people.omnigroup.com/tom/NSTokenField.zip has
been modified w/ the workaround.
-Tom
On Mar 10, 2008, at 3:00 PM, Tom Bunch wrote:
Hey developers,
I've been grappling with a problem very sim
der and a topRightHeader into one
NSTextStorage using page with info and NSRightTabStops was kind of a
pain. I think if I do it again I'll just use separate text storages.
Hope this helps.
-Tom
On Mar 12, 2008, at 2:47 PM, Mike Wright wrote:
I have an app (Universal, compiled using XCo
The astute reader will realize that I swapped the origin.y for the
header and the footer.
-Tom
On Mar 12, 2008, at 5:01 PM, Tom Bunch wrote:
Mike,
I've messed around with this and boy has it been a head scratcher.
Still haven't got it accounting properly for all combinations
ist (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://lists.apple.com/mailman/options/cocoa-dev/tom%40omnigroup.com
This email sent
NSData *data = [NSURLConnection sendSynchronousRequest:req
returningResponse:&res
error:&err];
--
Tom Harrington
On Thu, Mar 13, 2008 at 2:50 PM, Tom Harrington <[EMAIL PROTECTED]> wrote:
> [postBody appendData:[[NSString stringWithString:@"Content-Type:
> null\r\n\r\n"] dataUsingEncoding:NSUTF8StringEncoding]];
Someone asked about this. FYI, "null" is what the
r 13, 2008 at 3:02 PM, Tom Harrington <[EMAIL PROTECTED]> wrote:
> On Thu, Mar 13, 2008 at 2:50 PM, Tom Harrington <[EMAIL PROTECTED]> wrote:
> > [postBody appendData:[[NSString stringWithString:@"Content-Type:
> > null\r\n\r\n"] dataUsingEncoding:N
really want to figure it out, just make a trivial subclass of
NSTimer that implements retain, release, autorelease, and maybe
dealloc. Make them log, set breakpoints on them, take them apart and
see what makes them tick.
-Tom
On Mar 13, 2008, at 6:37 PM, Brian Greenstone wrote:
I'm hop
o have two more dashes than the boundary
declaration in the content-type header. Once I fixed that, my code
worked.
--
Tom Harrington
[EMAIL PROTECTED]
AIM: atomicbird1
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin reques
ally install
the command-line tool. Depending on your architecture the
command-line tool could be as simple as a symbolic link to the main
bundle's binary.
Depending on your requirements, you might consider whether the
batch-mode processing would be better i
st the data and call its
delegate methods.
Also, is it possible that when -sendLogs is called from another class,
it's also called from a separate thread? NSURLConnection's delegate
methods are called on the same thread that initiated the connection,
and if you've started a differen
] superview] frame]" would give you the current
width, and if desired you could adjust mainView's frame appropriately.
This would mean designing to Tiger's pref pane width, and then
expanding when running on Leopard. Best to stick with looking up the
size instead
o just give
the thread its own run loop. It all depends on your app architecture.
--
Tom Harrington
[EMAIL PROTECTED]
AIM: atomicbird1
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
nd OS X.
Tom
___
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:
forum.
It seems kind of silly that iPhone discussion is forbidden here when
Apple's apparently not concerned with hosting the discussions
elsewhere, but hey, what do I know about it.
--
Tom Harrington
[EMAIL PROTECTED]
AIM: atomicbird1
___
Cocoa
o die a slow leaky
death. Perhaps I'm misinterpreting you...
-Tom
___
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.c
greed on by several interested developers. We need more than an API
to set xattrs, we need to agree on names and formats.
--Tom Andersen
Ironic Software
On 8-Jul-08, at 3:52 AM, [EMAIL PROTECTED] wrote:
A lot of discussion on different application user forums seem to be
going on regarding th
imits xattrs to 'one b-tree node' which I take it is 4k.
http://en.wikipedia.org/wiki/Extended_file_attributes
--Tom
On 8-Jul-08, at 10:59 AM, Mac QA wrote:
On Tue, Jul 8, 2008 at 10:45 AM, Tom Andersen <[EMAIL PROTECTED]>
wrote:
User Entered tags:
---
Hello,
I would like to write a app to be able to talk to a couple of
different types of databases (MySQL, Oracle). I'm thinking that JDBC
is the way to go. Does anyone know of any JDBC frameworks and examples
that you can point me towards, I cant seem to really find much.
Thanks
Hello,
I would like to write a app to be able to talk to a couple of
different types of databases (MySQL, Oracle). I'm thinking that JDBC
is the way to go. Does anyone know of any JDBC frameworks and examples
that you can point me towards, I cant seem to really find much.
Thanks
Hmm, this is really a shame. I guess I was just looking for a good
framework to use to connect to a database. I think this is a big hole
that Apple should really fill. It would be really cool if we could
connect to other databases rather than just SQLite.
Thanks,
tom
On Jul 10, 2008, at
anks again,
tom
On Jul 10, 2008, at 8:44 PM, Jens Alfke wrote:
On 10 Jul '08, at 8:30 PM, Phillip Jacobs wrote:
You can use Core Data, or if for any reason you're against that or
it's not available you can use fmdb.
Um, those both use sqlite. Tom is asking about other SQL d
leTypeOSTypes
gif
CFBundleTypeRole
Editor
LSTypeIsPackage
NSDocumentClass
LIVDocument
...
The info.plist includes a dictionary for each of the above listed types.
Th
w there isn't a definitive answer here, but I'm hoping the wealth of
experience on this list can provide some good advice.
Tom Fortmann
Xcape Solutions Inc.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
Is there a core foundation function for querying the Mac OS X operating
system name and version information? The uname() API returns the Darwin
kernel version information, but I need to find the OS X 10.x.x information.
Tom Fortmann
Xcape Solutions
What framework do I include in my Xcode project to pull in Gestalt? I've
tries CoreServices, Carbon and Cocoa.
-Original Message-
From: Sean McBride [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2008 2:27 PM
To: chaitanya pandit; Tom Fortmann
Cc: cocoa-dev@lists.appl
I'm an idiot! I was trying to include gestalt.h directly. Simply including
the header works like a champ.
-Original Message-
From: Sean McBride [mailto:[EMAIL PROTECTED]
Sent: Friday, November 14, 2008 3:17 PM
To: Tom Fortmann; 'chaitanya pandit'
Cc: cocoa-dev@lists.ap
Hey everyone,
I'm trying to access the API of delicious. You can access a JSON list
just by using the URL http://feeds.delicious.com/v2/json/.
So I tried to access that result from within cocoa code. Here's my try:
NSURL *url = [NSURL URLWithString:@"http://feeds.delicious.com/v2/
json/"];
N
Hey everyone,
I'm trying to access the API of delicious. You can access a JSON list
just by using the URL http://feeds.delicious.com/v2/json/.
So I tried to access that result from within cocoa code. Here's my try:
NSURL *url = [NSURL URLWithString:@"http://feeds.delicious.com/v2/
json/"];
N
is
loaded when the app launches and it's main method can be called. Is
there such a architecture that I can read up on and integrate in to a
Cocoa application?
Thanks,
tom
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please
This is great, thanks! I think you even covered follow up questions,
now it's off to read the Apple documentation.
Thanks again,
tom
On Dec 12, 2008, at 1:05 AM, Chris Hanson wrote:
On Dec 12, 2008, at 12:16 AM, Kyle Sluder wrote:
On Fri, Dec 12, 2008 at 2:58 AM, Tom Jones
wrote
w to modify your existing QTKit code and opt into
the new, high-performance playback capabilities available in QuickTime
X, as well as how to deal with monitoring load state.
-Tom Maremaa
Apple Developer Documentation -
QuickTime___
Cocoa-dev maili
I've been busy reading the documentation all day, and can't for the life of
me figure out how to change the editing behavior of an NSCell.
I have a cell, which I'd like to pop up a window over when the user attempts
to edit it (much like many websites do to present a date picker for
example).
I ha
Hello,
I'm playing with NSFileManager and I'm trying to get all of the contents of a
directory. When I use "directoryContentsAtPath" it just gives me the one level.
Is there an easy/good way to get all subdirectories and files a
Thanks, I have no idea how I missed that in the docs :-P
tom
- Original Message -
From: "Dave Keck"
To: "Tom Jones"
Cc: cocoa-dev@lists.apple.com
Sent: Sunday, October 11, 2009 10:57:43 AM GMT -08:00 US/Canada Pacific
Subject: Re: Recursively get all fi
y big.
[fileArray writeToFile:@"/Users/Shared/test" atomically:TRUE];
[NSKeyedArchiver archiveRootObject:fileArray toFile:@"/Users/Shared/test2"];
What other options do I have to write my NSDirectoryEnumerator data to a file
with good c
I'm trying desperately to find where the API for scanning images is, I've
found the Image Capture API on developer.apple.com, but I can't find a more
recent version than one for 10.4, and none of the sample code compiles any
more, worse the sample apps crash on launch.
What should I be searching t
sData = [NSData dataWithBytes:&anNSDecimal
length:sizeof(NSDecimal)];
gives you an NSData object suitable for an NSDictionary without having to
muck around with NSDecimal's private fields.
++ Tom
Tom Bernard
tombern...@bersearch.com
> --__--__--
>
> Message: 11
> Date: Tue,
eEminusThirtyFive = 0.001
oneEminusThirtyFiveToFourthPower =
10000000
0
err = 0
Tom Bernard
tombern...@bersearch.com
___
Cocoa-dev mai
a file and
retrieves them. I plan to test these apps on modern and legacy hardware to
verify the endian question. But for now, that is a side-track for me. Has
anyone already done such a test?
++ Tom
Tom Bernard
tombern...@bersearch.com
on 11/20/09 1:02 PM, Greg Guerin wrote:
> Message
work.
What do I need to do?
Thanks,
tom
___
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
uff"];" in any of my classes. I have never
really done this before. Should I just re-init it in each of my classes?
Thanks,
tom
On Nov 27, 2009, at 11:10 PM, Jens Alfke wrote:
>
> On Nov 26, 2009, at 9:18 AM, Tom Jones wrote:
>
>> I thought I could just create a Global
rForDate3(): 74.5191 microseconds
(The above times include 0.4 microseconds attributable to the testing
overhead.)
Since Apple's engineers would not throw away a perfectly good object without
providing something better, I must be doing things the hard way. What is the
easy way?
Thanks in adva
As written, 70 microseconds. When I set the calendar's time zone to GMT, the
time drops to 43 microseconds. Since my app will only work with dates in
GMT, this is a plus. Even so, 40 microseconds is far slower than the 7 - 8
microseconds offered by -[NSCalendarDate dayOfYear]. Unless someone has
an
again to you and to Eliza Block for your suggestions.
++ Tom
Tom Bernard
[EMAIL PROTECTED]
on 8/22/08 12:00 AM, Ryan McGann at [EMAIL PROTECTED] wrote:
>> As written, 70 microseconds. When I set the calendar's time zone to
>> GMT, the
>> time drops to 43 microseconds.
I'm looking for suggestions on how to best handle long running tasks. My
app has a simple button connected to an Objective-C method. When I click
the button the method is called and a series of steps are performed. Each
involves some network activity and may take a second or two. I would like
t
Wow - thank you. This helps a lot. I've read the thread programming guide - I
just wish it included more high-level design considerations and suggestions
such as these. Thanks again, Tom
___
Thomas Fortmann
Director of Development
Xcape Solu
I'm new and jumping in late and really don't have much to add except you are
both right. At its core I think it's important that OS X hold true to the
concept that any Application can be installed and deleted through a simple
drag and drop operation. Installers aren't a bad thing. They help user
08
NSString *lLongMaxPlusOneString = [formatter
stringFromNumber:lLongMaxPlusOneNumber]; // debugger shows
-9,223,372,036,854,775,808
[unsignedLongLongTextField3 setStringValue:lLongMaxPlusOneString];
}
Thanks in advance.
++ Tom
Tom Bernard
FYI - I know this is a little off the Cocoa topic, but I didn't see a more
appropriate developer list. If one exist please forgive the intrusion and
point me in the right direction.
Tom Fortmann
Xcape Solutions
___
Cocoa
Jason,
Thanks. I will try removing the OnDemand key. If that doesn't work I will
report on Darwin-dev list.
Thanks again,
Tom
-Original Message-
From: Jason Coco [mailto:[EMAIL PROTECTED]
Sent: Monday, October 20, 2008 3:14 PM
To: Tom Fortmann
Cc: cocoa-dev@lists.apple.com
Su
Hello,
I'm writing a Foundation tool and I need to run a NSTask in a separate
thread. I have it working but when the task completes the thread is
still running. I tried issuing a [NSThread exit] but that did nothing.
What am I missing?
Thanks,
tom
This my main code
#import
#i
thread is completed it's still present.
>> What am I missing?
> I suspect it's because you aren't allowing any run loops to run. See
> the thread beginning here:
> http://lists.apple.com/archives/Cocoa-dev/2008/Oct/msg01016.html
Thanks,
tom
ovide,
Tom
___
THOMAS FORTMANN
Director of Development
XCAPE SOLUTIONS, INC.
207 Crystal Grove Blvd.
Lutz, FL 33548
TEL 847 228 9831
<http://www.xcapesolutions.net> www.xcapesolutions.net
<mailto:tfortm...@xcapesolutio
Event
that can be sent to determine this? Please let me know if anyone has any
ideas on how to do this.
Thanks,
Tom
___
THOMAS FORTMANN
Director of Development
XCAPE SOLUTIONS, INC.
207 Crystal Grove Blvd.
Lutz, FL 33548
TEL 847 228 9831
...likely that they will be formally deprecated
in a future version of Mac OS X", where as the utmpx API is new to 10.5
which implies a potentially longer life.
Thanks again,
Tom
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do no
tical
application within my code. I've also looked at simply running the codesign
utility and parsing its XML output, but this seems like a weak design. What
is codesign gets replaced?
Tom
___
THOMAS FORTMANN
Director of Development
XCAPE
PM
To: Tom Fortmann
Cc: cocoa-dev@lists.apple.com; darwin-...@lists.apple.com
Subject: Re: Code Signing Examples
On Feb 20, 2009, at 6:47 AM, Tom Fortmann wrote:
> Can anyone point me to sample code on how to verify an application
> or process is signed? My application executes a c
I'm working on a project where I'm reading in a file that contains a
list of coordinates that are used to define a stitch pattern for
embroidery machines. Think of those machines you see at the mall that
stitch names and logos on hats and t-shirts. To display the images, I
created a documen
How do I configure a launchd .plist file to detect when an application
running.
Thanks
Tom
___
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
certain actions. I was wondering if there was a launchd.plist key
that allowed for launchd to detect an application startup.
Tom
Your question is unclear and doesn't make much sense.
Please give lots of clarification, and consider posting your question
on a list where it's more on-topi
scanned that page several times
but never really paid much attention to that statement.
Tom
On Jun 4, 2009, at 11:51 AM, Greg Guerin wrote:
Tom Hohensee wrote:
I have written an application that I would like to launch whenever
a certain app is launched. I have used LaunchAgents in the past to
You are going to have to programmatically load the plist.
On Jun 3, 2009, at 4:52 AM, rethish wrote:
hi,
I want to launch my application using a time based scheduling. I have
created a plist by setting the keys: Label, onDemand,
ProgramArguments and
startCalenderInterval. And I placed the pl
/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/tomhoh%40mac.com
This email sent to tom...@mac.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list
Try AquaticPrime. It is very good and has good documentation.
Tom
On Jun 8, 2009, at 2:57 AM, Matthew Delves wrote:
Hey Folks,
I'm looking for a tutorial or some sample code for creating software
licenses for an app I'm developing. Unfortunately the interwebs seem
to be rather
If you want to access the serial port via Objective-C classes try
AMSerialPort. It is a collection of classes to access serial ports. I
have used it extensively for my serial programs and it works very well.
Tom
On Jun 15, 2009, at 5:10 PM, Vansickle, Greg wrote:
I'm tryi
I'm trying to use NSNotification to watch for a file but I can not seem to get
it to work. Is it possible to use NSNotification to watch for a specific file
on the file system? One example would be to run a method once the file shows up
on the filesystem.
Thanks
Thanks Graham. I downloaded Uli's class but I dont see any example code. By any
chance do you have a quick example?
Thanks,
tom
- Original Message -
From: "Graham Cox"
To: "Tom Jones"
Cc: cocoa-dev@lists.apple.com
Sent: Wednesday, June 24, 2009 7:38:54 PM GMT
Thanks Rob. This works great and if Stu is on this list great class!
tom
- Original Message -
From: "Rob Keniger"
To: "cocoa-dev Dev"
Sent: Wednesday, June 24, 2009 7:57:21 PM GMT -08:00 US/Canada Pacific
Subject: Re: Watch for a file
On 25/06/2009, at 12:38
Steve,
Serial out is the tty prefixed with cu.
./a.out/dev/cu.USA49W62P1.1
Tom
On Jun 27, 2009, at 7:55 PM, Steve Checkoway wrote:
I have a Keyspan USA-49WLC USB to 4 serial ports adapter which, when
plugged in, correctly shows 4 /dev/tty.USA* and 4 /dev/cu.USA*
devices. I'm tryi
Mac OS X 10.5.7 and FIXED under Mac OS X 10.6
(10A380)
Not fixed is the NSDecimalPower() bug already noted. Also, the documentation
for NSDecimalIsNotANumber() has the return values YES and NO reversed.
Bug reports:
NSDecimalPower(): 7452166
NSDecimalIsNotANumber() documentation: 7452179
Tom
of
it?
Thanks
Tom Davie
___
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
Simple answer: no.
If your application can still read the strings, so can a clever person, if
by nothing else than sitting and patiently emulating a CPU with a piece of
paper and a pencil.
In order to actually secure something *you, or your recipient* have to be
involved in decrypting it, by know
Yes, that code is 100% fine.
Here's the logic from purely your point of view.
You allocate browserviewController and in doing so take ownership.
You do some stuff with browserviewController.
You are finished with browserviewController, and don't want to do anything
else with it, so you resign own
An image doesn't carry a blend mode, merely the image data. You *draw* the
image in a given blend mode.
Bob
On Fri, Jan 22, 2010 at 3:52 PM, Eric E. Dolecki wrote:
> I'm not combining two or more images, I merely would like a single uiimage
> in a uiimageview to have a blend mode applied to it
*)tableColumn byItem:(id)item
{
return @"Library";
// if (item == self.library)
// {
// return @"Library";
// }
}
Note that commenting out both lines that requests self.library cause the
error to go away.
Any help would be much appreciated.
Thanks
Tom Davie
p.s. Here's a st
SOunds good. Look forward to getting time together when you get here
in August. Although, we might be on vacation for some of that time.
How you handling the challenges?
--
Thanks.
Thomas G. Schaffernoth (Tom)
Quoting Tejas Vora :
Thanks a lot for the responses.
Just require some
92 matches
Mail list logo