On Jun 3, 2009, at 9:33 PM, Andy Lee wrote:
On Jun 3, 2009, at 11:41 PM, Fritz Anderson wrote:
On 3 Jun 2009, at 7:56 PM, Cain John wrote:
I cannot find this documentation. Searching the Mac Dev Center
gives over 60 references to the class but no documentation of
it's properties and metho
On 3 Jun 2009, at 19:47, Paul J. Lucas wrote:
Given that NSAppleScript objects are always supposed to run on the
main thread, I created a small "proxy" object to use:
If I compile a valid script, it works as expected; however, if I
compile a gibberish script, e.g., "foo", compileAndReturnE
Hi list,
I've been sketching out an application and could do with a little
advice on which cocoa-direction to take. It's a full-screen (kiosk)
type app, running in a very controlled environment (not for wide
release) but which would run on an external touchscreen monitor.
While I can make
On Jun 4, 2009, at 03:44, Ben wrote:
Hi list,
I've been sketching out an application and could do with a little
advice on which cocoa-direction to take. It's a full-screen (kiosk)
type app, running in a very controlled environment (not for wide
release) but which would run on an external
try http://lists.apple.com/mailman/listinfo/discrecording
"This list is for technical discussions by programmers adding CD/DVD
burning support to their applications through the Disc Recording
frameworks."
atze
Am 03.06.2009 um 21:31 schrieb David Melgar:
Where can I ask a questi
Let me explain what I'm trying to do by referring to iTunes.
Imagine that iTunes has only one underlying NSArrayController and only one
table view in the UI.
And image that when you click on a smart playlist, all that happens is that new
fetch predicate is set for the underlying array contro
It was really of great help to find the default application.
I am having one issue with setting the default application.
I tried these two function
OSStatus LSSetHandlerOptionsForContentType (
CFStringRef inContentType,
LSHandlerOptions inOptions
);
Or
OSStatus LSSetDefaultRoleHandlerForCo
I'm getting flaky behavior from my KVO code and I'm wondering what I'm
doing wrong. I can't find any similar examples.
I have a pop-up button and 2 NSTableViews.
The pop-up button selection controls the content of the left
NSTableView. The left NSTableView's selection controls the content of
On Jun 4, 2009, at 3:34 AM, M Pulis wrote:
In Xcode 3.1.2, when I Option-Click QTCaptureSession in my source
code, select "Find Selected Text in API Reference" it takes me to
the "QTCaptureSession Class Reference"
I have the same version of Xcode, with the latest docset updates, and
when I
Hi folks,
I need some advice on how best to handle an itchy problem. In order to
tighten up my coding I'm compiling with warnings as errors which has
showed up a big problem with my code.
I have a tableView using a datasource array of dictionaries. Fairly
standard stuff. 2 of the keys in t
On 04/06/2009, at 10:31 PM, Steven Hamilton wrote:
I'm getting the error because I initially declared my credit and
debit objects as NSNumbers. Can I recast them without them losing
scope?
Yes, just do this: credit = (id)[NSNull null];
--Graham
_
On 04/06/2009, at 10:36 PM, Graham Cox wrote:
On 04/06/2009, at 10:31 PM, Steven Hamilton wrote:
I'm getting the error because I initially declared my credit and
debit objects as NSNumbers. Can I recast them without them losing
scope?
Yes, just do this: credit = (id)[NSNull null];
--G
On 04 Jun 2009, at 14:31, Steven Hamilton wrote:
Hi folks,
I need some advice on how best to handle an itchy problem. In order
to tighten up my coding I'm compiling with warnings as errors which
has showed up a big problem with my code.
I have a tableView using a datasource array of dicti
(Sorry if this is OT, I couldn't find a better apple-hosted list...)
How does one use AppleGlot and XIBs?
I have an app, "My.app", that was previously localized. I'm working
on version 2.0.
My app is starting to use XIB files. These get compiled into NIBs in
My.app.
The AppleGlot docs
On Jun 4, 2009, at 4:24 AM, Stefan Reitshamer wrote:
I'm getting flaky behavior from my KVO code and I'm wondering what
I'm doing wrong. I can't find any similar examples.
I have a pop-up button and 2 NSTableViews.
The pop-up button selection controls the content of the left
NSTableView. Th
Hi All,
I want one of my object, not to be paged out unless and until I am done with
my object. The way mlock() behave.
Is there any way to do this in cocoa?
Regards
Cocoa.learner.
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not p
On Jun 4, 2009, at 2:45 AM, Ulai Beekam wrote:
How would you get around this problem?
I would do what the Programming Guide suggests in the link I gave.
(Execute the fetch manually.)
mmalc
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
On Jun 4, 2009, at 7:25 AM, cocoa learner wrote:
Hi All,
I want one of my object, not to be paged out unless and until I am
done with
my object. The way mlock() behave.
Is there any way to do this in cocoa?
Is there a particular reason why you need to do this? There is almost
certainly
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
detect events such as USB insertion and volume mounting to perform
certain actions. I was wondering if there was a launchd.plist key
that allowed for launc
On 2009 Jun 04, at 08:40, Todd Heberlein 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
detect events such as USB insertion and volume mounting to perform
certain actions. I was wondering if the
One other thing I should have mentioned is that if this "certain app"
that you're watching to launch happens to write a file somewhere when
it launches, then you could use the directory-watching capability of
launchd.
I wonder if the system writes a file somewhere, when ^any^ app launches?
I ran into a similar problem - but I decided to use libcrypto:
man 3 sha1
or
man 3 EVP_DigestInit
Keita
On Thu, Jun 4, 2009 at 9:29 AM, Ken Tozier wrote:
> Hi
>
> I wrote a SHA class using the algorithm at
> http://en.wikipedia.org/wiki/SHA1#SHA-1_pseudocode and while it runs
> without crashing
An other alternative is using the CommonCrypto API (which does not
require to link on other library like OpenSSL).
man "Common Crypto"
Le 4 juin 09 à 18:23, KK a écrit :
I ran into a similar problem - but I decided to use libcrypto:
man 3 sha1
or
man 3 EVP_DigestInit
Keita
On Thu, Jun 4, 2
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
detect events such as USB insertion and volume mounting to perform
certain actions. I was wondering if there was a launchd.plist key
th
On Thu, Jun 4, 2009 at 3:44 AM, Ben wrote:
> Hi list,
>
> I've been sketching out an application and could do with a little advice on
> which cocoa-direction to take. It's a full-screen (kiosk) type app, running
> in a very controlled environment (not for wide release) but which would run
> on an
On Jun 4, 2009, at 5:24 AM, Stefan Reitshamer wrote:
I'm getting flaky behavior from my KVO code and I'm wondering what
I'm doing wrong. I can't find any similar examples.
I have a pop-up button and 2 NSTableViews.
The pop-up button selection controls the content of the left
NSTableView. T
I wrote a SHA class using the algorithm at http://en.wikipedia.org/
wiki/SHA1#SHA-1_pseudocode and while it runs without crashing, the
hashes it produces are not the same as those from numerous online
SHA-1 hashing converters. Of particular confusion is the issue of
byte swapping and how t
email or call me and I will come right out
614-302-4480
On Jun 4, 2009, at 3:02 PM, cocoa-dev-requ...@lists.apple.com wrote:
Send Cocoa-dev mailing list submissions to
cocoa-dev@lists.apple.com
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.apple.com/ma
On Jun 4, 2009, at 7:25 AM, cocoa learner wrote:
I want one of my object, not to be paged out unless and until I am
done with
my object. The way mlock() behave.
Is there any way to do this in cocoa?
First answer: No. You can't lock all of the code and metadata
associated with the object, s
I', trying to compile a cpp file.i just included include.But it
shows so may errors.In build settings ,compiling the sources as its type.Is it
missed any project settings?
/System/Library/Frameworks/Foundation.framework/Headers/NSObjCRuntime.h:124:
error: expected unqualified-id before '@' tok
Hello All,
I am facing an issue in use of mach_absolute_time().
mach_absolute_time() gives drift even when NTP timing update is on.
Please see my code below:
#import
#import
nt main(int argc, char *argv[])
{
uint64_t nowTime = mach_absolute_time();
uint64_t drift = 0;
On Thu, 4 Jun 2009 09:29:43 -0400 Ken Tozier wrote
>
> I wrote a SHA class using the algorithm at
> http://en.wikipedia.org/wiki/SHA1#SHA-1_pseudocode
<>
When in doubt, go to the source!
http://csrc.nist.gov/publications/fips/fips180-3/fips180-3_final.pdf
It's pretty easy to implement from t
On Thu, Jun 4, 2009 at 3:15 AM, MacUser S wrote:
> I', trying to compile a cpp file.i just included include.But
> it shows so may errors.In build settings ,compiling the sources as its
> type.Is it missed any project settings?
Objective-C++ files have a .mm suffix.
--Kyle Sluder
_
Hello, I'm about to bang my head against the wall. Here's the situation, I'm
trying to send many requests using the same request object, I have a method
which I call frequently, which has the following piece of code:
NSMutableURLRequest *newReq = [[NSMutableURLRequest alloc] init];
[newReq set
On Jun 4, 2009, at 4:15 AM, MacUser S wrote:
I', trying to compile a cpp file.i just included includeCocoa.h>.But it shows so may errors.In build settings ,compiling the
sources as its type.Is it missed any project settings?
No; you need to change the extension from 'cpp' to 'mm' in order
On Thu, Jun 4, 2009 at 8:39 AM, wrote:
> I am facing an issue in use of mach_absolute_time().
Your post is off-topic in two ways: First, this has nothing to do
with the thread to which you replied (start a new thread for a new
question/topic). Second, this has nothing to do with Cocoa at all
On Jun 4, 2009, at 5:39 AM, harpreet_si...@oxyent.com wrote:
I am facing an issue in use of mach_absolute_time().
mach_absolute_time() gives drift even when NTP timing update is on.
Please see my code below:
#import
#import
nt main(int argc, char *argv[])
{
uint64_t nowTime = mach_ab
On Jun 4, 2009, at 5:39 AM, harpreet_si...@oxyent.com wrote:
Hello All,
I am facing an issue in use of mach_absolute_time().
mach_absolute_time() gives drift even when NTP timing update is on.
sleep(5);
Your assuming that sleep() provides drift free timing, which it does
n
On Jun 4, 2009, at 2:51 AM, Joe Ranieri wrote:
On Jun 4, 2009, at 03:44, Ben wrote:
Hi list,
I've been sketching out an application and could do with a little
advice on which cocoa-direction to take. It's a full-screen (kiosk)
type app, running in a very controlled environment (not for
Thanks for the replies.
I am actually quite familiar with launchd but was thinking that maybe
I had missed something. I vaguely remember reading a blog where
someone had used launchd to detect the app launching event but for the
life of me I cannot find it. It probably had something to d
On 4 Jun 2009, at 21:47:47, Ricky Sharp wrote:
For a kiosk, you should definitely consider your own UI. That's
what I have done. You'll also find that if your app will be
exclusively used in touch environments, some of the Aqua controls
may not fit well at all (since they were designed p
I have an NSToolbarItem with its "Enabled" binding set to a property
in a controller object. For some reason after customizing the toolbar
the next time the property is updated a notification is sent to a
deallocated instance of the NSToolbarItem. It does not matter if I
change the item a
On Jun 4, 2009, at 1:35 PM, Greg Guerin wrote:
Why are you writing this algorithm?
Practice mostly. I wrote a MySQL connector class in Cocoa, but had to
copy the SHA and password scrambling code from the MySQL source. It
works, but it's really ugly and I wanted to take a crack at that par
On Thu, Jun 4, 2009 at 6:03 PM, Ken Tozier wrote:
>> Iff you're running it on an Intel CPU, simply compile the code for ppc and
>> use the 'arch' command to run that slice instead of the native slice. If it
>> doesn't produce the same output, then you have an implied-endian bug. If it
>> does pr
Previously, I would have said the view-controller. But I just
finished looking at the Metronome sample, which is included in the
iPhone SDK. The touch handling code as well as some of the view
initialization code (requiring a completely loaded view) is
implemented in the UIView-derived cl
On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:
Hello, I'm about to bang my head against the wall. Here's the
situation, I'm
trying to send many requests using the same request object, I have a
method
which I call frequently, which has the following piece of code:
This is not all the rel
On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska wrote:
> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:
>
> Hello, I'm about to bang my head against the wall. Here's the situation,
>> I'm
>> trying to send many requests using the same request object, I have a
>> method
>> which I call frequently, w
Hello all! Is there a way to subclass NSPanel and turn off the title bar on
it? I've check NSPanel and NSWindow. The only thing I found was
setShowsToolbarButton in the 'Managing Title Bars' section which is not it.
Im doing this for a pop up menu of a menu bar application. I want to see if
I can u
On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote:
On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska d...@esoteritech.com>wrote:
On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:
Hello, I'm about to bang my head against the wall. Here's the
situation,
I'm
trying to send many requests using the same r
On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah wrote:
>
> On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote:
>
> On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska > >wrote:
>>
>> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:
>>>
>>> Hello, I'm about to bang my head against the wall. Here's the situation,
On Thu, Jun 4, 2009 at 4:44 PM, Ammar Ibrahim wrote:
> Excuse me for the silly question. But I'm going to be doing hundreds of
> requests, and I have GC ON, how do I create these connections and retain
> them?
Not sure I understand the question but as a guess...
Put them in an NSMutableArray or
On Fri, Jun 5, 2009 at 2:44 AM, Ammar Ibrahim wrote:
>
>
> On Fri, Jun 5, 2009 at 2:37 AM, Mike Abdullah
> wrote:
>
>>
>> On 5 Jun 2009, at 00:10, Ammar Ibrahim wrote:
>>
>> On Fri, Jun 5, 2009 at 1:55 AM, Keary Suska >> >wrote:
>>>
>>> On Jun 4, 2009, at 2:11 PM, Ammar Ibrahim wrote:
Ammar Ibrahim wrote:
Excuse me for the silly question. But I'm going to be doing
hundreds of
requests, and I have GC ON, how do I create these connections and
retain
them?
Make an NSArray ivar, which you add the connections to.
This will work under GC or retain/release. GC works because
On Fri, Jun 5, 2009 at 3:16 AM, Shawn Erickson wrote:
> On Thu, Jun 4, 2009 at 4:44 PM, Ammar Ibrahim
> wrote:
>
> > Excuse me for the silly question. But I'm going to be doing hundreds of
> > requests, and I have GC ON, how do I create these connections and retain
> > them?
>
> Not sure I under
I have created a Help Book that is indexed and recognised as part of
the Help function, running under Leopard. The Spotlight search works
fine (when the user types search terms directly into the help menu).
However, when the Help application has started, and the user types a
search term i
On Jun 4, 2009, at 6:28 AM, Eric Slosser wrote:
(Sorry if this is OT, I couldn't find a better apple-hosted list...)
How does one use AppleGlot and XIBs?
I have an app, "My.app", that was previously localized. I'm working
on version 2.0.
My app is starting to use XIB files. These get co
Hey Michael -
It might help to approach this problem with the idea of "If I had
multiple view controllers using this view, how would I make that work
best".
Event handling is something you would normally manage at the UIView
layer. After those events are handled, they're typically transla
I'm having problems validating an NSSegmentedControl in a toolbar.
I have tried implementing both -validateUserInterfaceItem: and -
validateToolbarItem: but neither is called for the segmented control.
They are called for other simple buttons in the toolbar.
There's a note in the documentati
You want to create a borderless NSWindow. Override
-initWithContentRect:styleMask:backing:defer: to add
NSBorderlessWindowMask to the style mask you pass to super's
implementation.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
P
On 4 jun 2009, at 18.10, Graham Cox wrote:
There's a note in the documentation for -validateToolbarItem: that
"NSToolbar only calls this method for image items", which might
explain it. So what do I need to do to make this work for the
segmented control? I've read all the toolbar and valid
John Ku wrote:
Hello all! Is there a way to subclass NSPanel and turn off the title
bar on
it? I've check NSPanel and NSWindow. The only thing I found was
setShowsToolbarButton in the 'Managing Title Bars' section which is
not it.
Im doing this for a pop up menu of a menu bar application. I
Im going for a window that attaches to a menu bar item. Im going for
something like Cover Sutra's pop up Window:
http://sophiestication.s3.amazonaws.com/images/coversutra/screenshot1.png
Cover sutra's isn't resizable by the user, but the program resizes itself
depending on the search result.
On
On Jun 4, 2009, at 7:10 PM, Graham Cox wrote:
There's a note in the documentation for -validateToolbarItem: that
"NSToolbar only calls this method for image items", which might
explain it. So what do I need to do to make this work for the
segmented control?
In addition to what Joar sugg
If you force your panel's "setTitle" method to an empty NSString, does that get
you a panel with a bar without a title ?
vinai
--- On Thu, 6/4/09, John Ku wrote:
> From: John Ku
> Subject: Re: No Title Bar on NSPanel
> To: "Gregory Weston"
> Cc: cocoa-dev@lists.apple.com
> Date: Thursday, J
Yeah, the bar is still there but without a title.
john
On Thu, Jun 4, 2009 at 7:11 PM, vinai wrote:
>
> If you force your panel's "setTitle" method to an empty NSString, does that
> get you a panel with a bar without a title ?
>
> vinai
>
> --- On Thu, 6/4/09, John Ku wrote:
>
> > From: John Ku
On 05/06/2009, at 11:29 AM, Joar Wingfors wrote:
On 4 jun 2009, at 18.10, Graham Cox wrote:
There's a note in the documentation for -validateToolbarItem: that
"NSToolbar only calls this method for image items", which might
explain it. So what do I need to do to make this work for the
se
Sorry,
My error - I thought you were looking for a way to just have a window with an
empty title bar (I thought the resizing capability you mentioned was in the
title bar). I hadn't realized you wanted a window completely without a bar at
all ...
vinai
--- On Thu, 6/4/09, John Ku wrote:
>
Ahh, thanks for helping though. :)
On Thu, Jun 4, 2009 at 7:29 PM, vinai wrote:
>
> Sorry,
>
> My error - I thought you were looking for a way to just have a window with
> an empty title bar (I thought the resizing capability you mentioned was in
> the title bar). I hadn't realized you wanted a
On 05/06/2009, at 12:26 PM, Graham Cox wrote:
Follow-up question: how can I turn OFF a segment in a segmented
control? The situation is this:
Iterating over the segments with -setSelected:NO forSegment: does
the trick for this.
--Graham
___
On 05/06/2009, at 9:20 AM, John Ku wrote:
Hello all! Is there a way to subclass NSPanel and turn off the title
bar on
it?
You can't do this. The only way to get a window without a title bar is
to create an NSWindow using -
initWithContentRect:styleMask:backing:defer: and passing in
NS
It seems that bitmapImageRepForCachingDisplayInRect does not include
the focus ring (I am using bitmapImageRepForCachingDisplayInRect on an
NSView that encloses other views including the currently
firstResponder NSTextField, so the focus ring is displayed on screen
and is well within the bo
I am trying to figure out the easiest way to make an object animate around a
circle, but preserve it's orientation. Much in the way that a seat on a
ferris wheel would look as it goes 'round.
I assume there's a pretty simple solution, but I haven't thought of it yet.
Thanks!
___
On 05/06/2009, at 1:34 PM, Miles wrote:
I am trying to figure out the easiest way to make an object animate
around a
circle, but preserve it's orientation. Much in the way that a seat
on a
ferris wheel would look as it goes 'round.
I assume there's a pretty simple solution, but I haven't th
Thanks for the quick response!
I've mostly been reading trying to see what would work. I did mess with
changing the anchorPoint to get the initial animation route, but that didn't
seem to suffice.
The object I'm animating is a simple UIView containing an image.
I thought about the timer approach
Thanks for all that - now have the reference as html.
Will file a bug report.
Will join the quicktime-api list
Thanks again
John
On 04/06/2009, at 5:34 PM, M Pulis wrote:
On Jun 3, 2009, at 9:33 PM, Andy Lee wrote:
On Jun 3, 2009, at 11:41 PM, Fritz Anderson wrote:
On 3 Jun 2009, at 7:56 PM
I am writing an application which read an encrypted data from disk, decrypt
it and display that in UI. Now the object that holds that decrypted data
should not page out to swap area (for security reason).
This is my need. Is there a better way to do this?
On Thu, Jun 4, 2009 at 9:19 PM, David Dunc
How can I use mlock() for NSString and NSTextField?As argument to mlock is
address of memory area and length.
I have address of memory area but I do not have the length (as these are
objects).
Regards
Cocoa.learner
On Fri, Jun 5, 2009 at 1:22 AM, Greg Parker wrote:
> On Jun 4, 2009, at 7:25 AM,
On 05/06/2009, at 1:48 PM, Miles wrote:
Thanks for the quick response!
I've mostly been reading trying to see what would work. I did mess
with changing the anchorPoint to get the initial animation route,
but that didn't seem to suffice.
The object I'm animating is a simple UIView contain
On 05/06/2009, at 2:03 PM, cocoa learner wrote:
How can I use mlock() for NSString and NSTextField?As argument to
mlock is
address of memory area and length.
I have address of memory area but I do not have the length (as these
are
objects).
If you want to allow the user to edit a passwo
Welcome to the group!
On Jun 4, 2009, at 8:56 PM, Cain John wrote:
Thanks for all that - now have the reference as html.
Will file a bug report.
Will join the quicktime-api list
Thanks again
John
On 04/06/2009, at 5:34 PM, M Pulis wrote:
On Jun 3, 2009, at 9:33 PM, Andy Lee wrote:
On Jun 3
It's not just password. It can be any thing which is secure. Like file data,
personal information, any thing user mark it as secure.
Regards
Cocoa.learner
On Fri, Jun 5, 2009 at 10:08 AM, Rob Keniger wrote:
>
> On 05/06/2009, at 2:03 PM, cocoa learner wrote:
>
> How can I use mlock() for NSStri
On Jun 4, 2009, at 8:57 PM, cocoa learner wrote:
I am writing an application which read an encrypted data from disk,
decrypt
it and display that in UI. Now the object that holds that decrypted
data
should not page out to swap area (for security reason).
This is my need. Is there a better way
82 matches
Mail list logo