Andrew;
OK for the sake of the group I will parade my ignorance so that
perhaps others can learn too...
First I do understand your point that using AppleScript is using an
unnecessary high-level tool when a lower-level tool will do!
Thanks for keeping me on-point there!! Good old-school
Am Sa,02.08.2008 um 22:53 schrieb Keary Suska:
8/2/08 1:09 AM, also sprach [EMAIL PROTECTED]:
This is important for encapsulation. Every change of an object made
through a pointer will change the object for every other user of this
object, who refers using a different pointer.
Person*
Am Mo,04.08.2008 um 07:35 schrieb Eric Lee:
Sorry, I accidently did something wrong on that message. Here's the
one I'm actually asking...
How do you make a NSSplitView so that when you click something on
one side, the other side is updated. For example, take the mail
application. When
On Mon, Aug 4, 2008 at 12:22 AM, Andrew Farmer [EMAIL PROTECTED] wrote:
The double-fork is to fully detach the child process from the parent - note
that all of the parent processes immediately die, because fork() returns
nonzero.
But you've still introduced a race condition. You can more
I have a problem getting the iTunes list, and then making the
tableview display the iTunes list.
The problem, is actually getting started. Which class should I use?
I wrote some sample code a couple months ago to read in the playlist
names from the iTunes XML file. It might help get
On Mon, Aug 4, 2008 at 2:15 AM, Steve Cronin [EMAIL PROTECTED] wrote:
I have 4 questions
1) Given that it is higher-level than necessary, I would still appreciate
understanding why it doesn't work.
Race conditions, waiting on the child task to complete, reliance on
shell parsing semantics...
Am Mo,04.08.2008 um 00:19 schrieb James Gregurich:
thanks for the response. Adding the property is straight forward.
The key parts that are not clear to me are:
1) how exactly do you set up a predicate to walk an extra entity to
get to the target entity.
Loook at the documentation of
Le 4 août 08 à 06:06, Dave DeLong a écrit :
And having experimented with this myself, AppleScript can be
horrendously slow if you need to get information on more than about 50
tracks.
I do not agree with this. I just try the following script and I
managed to get more than 4500 tracks name
Kyle Sluder wrote:
4) Parse the iTunes Library XML files.
#4 is unsupported, but also the only way to get access to the iTunes
library when iTunes isn't running. The approach you take is dictated
by your functional requirements.
I was under the impression the primary reason the XML file
You can also check out our iMedia Browser at http://code.google.com/p/imedia/
On 4 Aug 2008, at 01:41, Eric Lee wrote:
I have a problem getting the iTunes list, and then making the
tableview display the iTunes list.
The problem, is actually getting started. Which class should I use?
I am transitioning some code from Carbon to Cocoa and redesigning a lot of
how things work. I am doing a bit of low-level pixel manipulation and
wondering about speed of access to variables declared in a method vs those
declared at the object level.
Obviously things like x,y loop counters are
Hey just click on the below link and register ... it will take only not more
than 2 mins of your time.. take a chance...Really true..
Hey Guys,
Check for free gift!! It’s true…
Click on this url:
http://mac.incentive-network.co.uk/?referral=16791
Regards,
Sachin Kumar T.
Hey just click on the below link and register ... it will take only not more
than 2 mins of your time.. take a chance...Really true..
Hey Guys,
Check for free gift!! It’s true…
Click on this url:
http://mac.incentive-network.co.uk/?referral=21256
Regards,
Sachin Kumar T.
Hi everyone,
In my current app, I have long periods where the user may not interact with the
app, but where the app display updates continuously, and the user continues to
watch the app (think playing a movie, or something like that). How do I go
about disabling the screensaver/sleep mode
Following on from my previous message, a few months back, we had a long
discussion on this list about whether the documentation was of a good quality
or not. This is an example where I find myself completely unable to find the
documentation that I need to answer the question myself. If anyone
On Mon, Aug 4, 2008 at 8:26 AM, Allison Newman [EMAIL PROTECTED] wrote:
Following on from my previous message, a few months back, we had a long
discussion on this list about whether the documentation was of a good quality
or not. This is an example where I find myself completely unable to
Le 4 août 08 à 12:47, Gregory Weston a écrit :
Kyle Sluder wrote:
4) Parse the iTunes Library XML files.
#4 is unsupported, but also the only way to get access to the iTunes
library when iTunes isn't running. The approach you take is dictated
by your functional requirements.
I was under
Le 4 août 08 à 13:26, Trygve Inda a écrit :
I am transitioning some code from Carbon to Cocoa and redesigning a
lot of
how things work. I am doing a bit of low-level pixel manipulation and
wondering about speed of access to variables declared in a method vs
those
declared at the object
On 04/08/2008, at 10:23 PM, Allison Newman wrote:
Hi everyone,
In my current app, I have long periods where the user may not
interact with the app, but where the app display updates
continuously, and the user continues to watch the app (think
playing a movie, or something like that).
Le 4 août 08 à 14:26, Allison Newman a écrit :
Following on from my previous message, a few months back, we had a
long discussion on this list about whether the documentation was of
a good quality or not. This is an example where I find myself
completely unable to find the documentation
Am Mo,04.08.2008 um 14:51 schrieb Jean-Daniel Dupas:
Le 4 août 08 à 13:26, Trygve Inda a écrit :
I am transitioning some code from Carbon to Cocoa and redesigning a
lot of
how things work. I am doing a bit of low-level pixel manipulation and
wondering about speed of access to variables
On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED] wrote:
I think the long on-list discussion(s) you mentioned about the
documentation kept pointing back to the feedback mechanism. This isn't
really the place to complain if you expect results. Post feedback,
contact DTS, et
On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED] wrote:
I think the long on-list discussion(s) you mentioned about the
documentation kept pointing back to the feedback mechanism. This isn't
really the place to complain if you expect results. Post feedback,
contact DTS, et
On 3 Aug 2008, at 16:53, Jonathan Dann wrote:
On 3 Aug 2008, at 04:35, Gerriet M. Denkmann wrote:
On 3 Aug 2008, at 05:51, Jonathan Dann wrote:
On 1 Aug 2008, at 14:04, Gerriet M. Denkmann wrote:
But all disclosure triangels are now closed. Is there some way
to reopen them to the
Hey all,
I have this app that constantly updates a series of thumbnails in the
background for a Cocoa view.
When I have less than, say, 40 items in there, there is no problem at
all.
If I add three times that many elements, CGImageSourceCreateWithURL
fails with error -11
Now, I know it's
IMHO, this is just premature optimisation.
That said, there is no cost to access an ivar using the 32 bits
runtime, and I don't think the cost on 64 bits runtime is important
enough to bother with it.
This is what I was trying to determine. Thanks.
Trygve
On Mon, Aug 4, 2008 at 9:16 AM, Trygve Inda [EMAIL PROTECTED] wrote:
IMHO, this is just premature optimisation.
That said, there is no cost to access an ivar using the 32 bits
runtime, and I don't think the cost on 64 bits runtime is important
enough to bother with it.
This is what I was
On Mon, Aug 4, 2008 at 12:22 AM, Andrew Farmer [EMAIL PROTECTED] wrote:
On 03 Aug 08, at 19:53, Michael Ash wrote:
On Sun, Aug 3, 2008 at 5:12 PM, Andrew Farmer [EMAIL PROTECTED] wrote:
On 03 Aug 08, at 14:00, Steve Cronin wrote:
I am trying to simply restart my app. To my dismay, I cannot
On Mon, Aug 4, 2008 at 7:26 AM, Trygve Inda [EMAIL PROTECTED] wrote:
I am transitioning some code from Carbon to Cocoa and redesigning a lot of
how things work. I am doing a bit of low-level pixel manipulation and
wondering about speed of access to variables declared in a method vs those
Hi, all,
I have a situation in which I am using two subclasses of NSOperation:
one is to execute an algorithm (in this case, to simulate the rolling
of dice), while the other is to log the result of that action. (I'm
using an operation for the logging since the logging can take some
Frankly, I think asking other Cocoa programmers about how to use the Cocoa
documentation effectively, using a specific example to examine the question,
is a perfectly legitimate use of the Cocoa Developer's list
Sure, but it's been stated numerous times that feedback about the
On Mon, Aug 4, 2008 at 8:42 AM, I. Savant [EMAIL PROTECTED] wrote:
More generally on the topic of documentation, this is the typical kind of
problem where I find that the documentation fails - when you don't have a
clue as to what sort of API might be responsible, the documentation is quite
I have a situation in which I am using two subclasses of NSOperation: one is
to execute an algorithm (in this case, to simulate the rolling of dice),
while the other is to log the result of that action. (I'm using an
operation for the logging since the logging can take some time due to its
On Aug 4, 2008, at 8:26 AM, Allison Newman wrote:
This is an example where I find myself completely unable to find the
documentation that I need to answer the question myself. If anyone
can give me a tip as to how I should have searched to get the answer
myself without having to bother
I might as well pimp my own project too.
http://code.google.com/sourcelist hosts an iLife like Source List
NSView subclass and provides an iTunes Music Library.xml parser as
an example.
Keith Duncan
[EMAIL PROTECTED], 33software.com
___
I need a sqlite wrapper. After much surfing and reading, I decided to try
the one:
// Created by Dustin Mierau on Tue Apr 02 2002.
// Copyright (c) 2002 Blackhole Media, Inc. All rights reserved.
//
After making changes to move the download from sqlite to sqlite3, and
checking that I have
On Aug 4, 2008, at 8:45 AM, I. Savant wrote:
I have a situation in which I am using two subclasses of
NSOperation: one is
to execute an algorithm (in this case, to simulate the rolling of
dice),
while the other is to log the result of that action. (I'm using an
operation for the logging
Glancing at your code, this:
AuthorizationItem right = { RIGHT, 0, NULL, 0 };
Looks completely wrong. What is RIGHT?
Your flags also look wrong. Your not allowing interaction, so the
system won't be allowed to authorize to create your right.
Not to mention that I have no idea
I might as well pimp my own project too.
The actual project link: http://code.google.com/p/sourcelist
Keith Duncan
[EMAIL PROTECTED], 33software.com
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
On Aug 4, 2008, at 4:00 AM, Nicolas Zinovieff wrote:
I have this app that constantly updates a series of thumbnails in
the background for a Cocoa view.
When I have less than, say, 40 items in there, there is no problem
at all.
If I add three times that many elements,
That probably won't gain you that much. Fractional page writes
will still requires FSWRriteFork to first copy the data into its
file buffer, which is where I suspect much of your current
overhead is.
Writing your data into a local, aligned, buffer shouldn't be too
difficult to re-engineer. I
On Aug 4, 2008, at 11:56 AM, John Velman wrote:
After making changes to move the download from sqlite to sqlite3, and
checking that I have /usr/local/lib/libsqlite3.a, and putting
/usr/local/lib in the library search path of the project, the source
for
the Demo compiles but does not link.
This seems like it would be common enough, to me, that it would have
bindings for it. I can't find anything, and am thinking I will write
an NSValueTransformer to do this (also thought there might be a value
transformer for this, but no). Am I missing something? I thought
that there
Hi,
I'm trying to use the Message Framework with Garbage Collection
enabled and it crashes deep down in the framework. With retain/release
it works fine. Am I correct in assuming that since it is deprecated
for 10.5 it can't be used with GC?
Is there anything that can be used instead?
Yup, I should have made that clearer in the initial post.
Basically what I was trying to get at is what happens when keyword
searches fail to turn up the info that you need. I generally try
searching in much the same way as you (API search, list archives,
Google - though I use non-site
when i refer to a file, i used:
file = [[NSMutableDictionary alloc] initWithContentsOfFile:[Folder
stringByAppendingPathComponent: FileName]];
Folder is set up as:
Folder = [[NSString alloc] initWithString:[@path
stringByExpandingTildeInPath]];
and Filename is:
FileName=
The TwoManyControllers sample code does what you want I think mostly
generated from declarative as far as I can see
On 4 Aug 2008, at 06:41, Graham Cox wrote:
This is not any thing to do with NSSplitView as such. You're asking
how to implement a master-detail interface. Try doing searching
Am 04.08.2008 um 02:11 schrieb Sandro Noel:
Hello!
I would like to know how to design an interface that resembles the
Mac Mail application
most specifically, the tree view, I cant seem to set the proper
properties in interface builder
to achieve the same thing...
so far, i've got the
On 4-Aug-08, at 9:00 AM, Allison Newman wrote:
On Monday, August 04, 2008, at 02:42PM, I. Savant [EMAIL PROTECTED]
wrote:
I think the long on-list discussion(s) you mentioned about the
documentation kept pointing back to the feedback mechanism. This
isn't
really the place to complain if
On Aug 4, 2008, at 10:35 AM, Ruotger Skupin wrote:
I'm trying to use the Message Framework with Garbage Collection
enabled and it crashes deep down in the framework. With retain/
release it works fine. Am I correct in assuming that since it is
deprecated for 10.5 it can't be used with GC?
Since I sent the previous message, I was looking at the SDK 10.4
sqlite3.dylib, and thinking of giving it a try. I didn't know I
specifically had to add it to the project.
I'll let you know what happens!
Thanks.
John V.
On Mon, Aug 04, 2008 at 01:22:37PM -0400, Brian Stern wrote:
On Aug 4,
Folks;
Here's the pretty simple tool I'm trying to create (THANK-YOU Michael
Ash!!)
int main (int argc, const char * argv[]) {
char dummy;
read(STDIN_FILENO, dummy, 1);
[NSAutoreleasePool new];
NSURL *url = [NSURL fileURLWithPath:[NSString
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote:
Folks;
I open new project using the CoreFoundation - Command Line Tool
template, and place the code shown above.
I've tried various usages of #import Foundation/Foundation.h but
can't seem to get it right so that NSURL NSAutoreleasePool
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote:
Here's the pretty simple tool I'm trying to create (THANK-YOU
Michael Ash!!)
int main (int argc, const char * argv[]) {
char dummy;
read(STDIN_FILENO, dummy, 1);
[NSAutoreleasePool new];
NSURL *url = [NSURL
Wow! Although you and the other list members have my profuse apologies for
missing that, I thought that my case was so unique that I didn't actually
think to look for that particular aspect of NSOperation --
right-under-the-nose, eh? -- and instead just came up with the term on my
own. I
Hello Andrew,
...
While dependent operations may produce a particular behavior, or be
configurable to produce certain behaviors, what behavior would be a
best practice from a UI and user-experience perspective?
In my eyes you should keep it simple for the users sake. The algorithm
and
On 8/3/08 3:01 PM, Kyle Sluder said:
If your array is called myArray, type
po myArray
in the debugger, and it will print the value of all objects in the array.
More specifically, it will send -description to all the objects in the
array, and print the result. Useful even if you have an
But splitting everything up leads
to big confusion. You should think about the reason why you need to split
it up and why you need to make it visible in behavior/interface. Are there
any benefits at all?
Nicely put. I wasn't (and still am not) sure if this is a
requirement for some good
John Joyce wrote:
I know I can do awkward things with AppleScript and Folder Action
scripts,
but is there a strictly Cocoa/Objective-C way to do something like
Folder Action scripts short of a daemon?
Try kqueue or FSEvents.
HTH
has
--
Control AppleScriptable applications from Python,
Eric Lee wrote:
I have a problem getting the iTunes list, and then making the
tableview display the iTunes list.
Using objc-appscript [1], here's how to list the name, artist and
album of every track in the current playlist:
#import ITGlue/ITGlue.h
// To create glue files: osaglue -o
On Mon, Aug 4, 2008 at 3:10 PM, David Duncan [EMAIL PROTECTED] wrote:
On Aug 4, 2008, at 11:51 AM, Steve Cronin wrote:
Folks;
I open new project using the CoreFoundation - Command Line Tool template,
and place the code shown above.
I've tried various usages of #import
I'm working on an application that will allow users to add columns of
descriptive information to an NSTableView - the available columns are
determined at launch time by loading a dictionary.
In my test app, I can add columns to my table no problem. Now I am
trying to decide on a robust
O.K. I had messed up the original project sufficiently that it didn't
work, So I started over, made a Cocoa app, added the sql stuff from
blackhole (modified for sqlite3), added the libsqlite3.dylib from SDK4,
and made an interface with one pushbutton, test with the original demo
code (which
On Aug 4, 2008, at 2:00 PM, Michael Ash wrote:
I think you may have missed the read() at the beginning of the
function, which is critical to the operation of the tool. (The purpose
is to wait for the parent process to quit, then restart it.) If,
however, I have instead missed a way to make the
On Aug 4, 2008, at 3:51 PM, has wrote:
Eric Lee wrote:
I have a problem getting the iTunes list, and then making the
tableview display the iTunes list.
Using objc-appscript [1], here's how to list the name, artist and
album of every track in the current playlist:
#import
If you add all the columns (and remove old ones) before calling
setAutosaveName:, or setAutosaveTableColumns:, then it should work out
okay; it will restore all of the widths, positions, etc.
corbin
On Aug 4, 2008, at 2:03 PM, Rick Hoge wrote:
I'm working on an application that will
Hi everybody,
I got hold of the source code of an ancient OpenStep application for
Rhapsody DR1/DR2 and Mac OS X Server (that little known version of
Mac OS X that came without Carbon and predates the Public Beta).
While I got the code itself to compile without relatively few tweaks
and
On Aug 4, 2008, at 1:50 PM, Allison Newman wrote:
In this particular case for example, my searches failed, because I
was searching on screensaver rather than sleep. This happens
quite often when you are coming from a non-OSX environment, such as
Windows, Linux, Java, whatever - different
I must be missing something obvious here and I'm hoping someone can
point it out.
When I try to read in an RTFD and then write it back out, I lose the
attachments (images) in the file if I open it up again. I'm using a
filewrapper to write it back out. The images are still in the package,
but
I read the original question to mean that Lars was trying to get the
NIB's from Rhapsody to run on Open Step. If so, I don't know of anyway
to do this. It's largely the reason we use NSKeyedArchiver on Mac OS X
instead of NSArchiver. Generally, we're pretty good about reading old
binary
Jens Alfke wrote:
I was wondering if anyone had any ideas about sending notifications
to Cocoa applications using either Ruby, or PHP? I want to send
notifications using a cocoa application to another cocoa application
and / or send notifications from a web based application.
Notifications
Thanks for the suggestion -
I tried calling setAutosaveTableColumns: after adding a column from
code, but on next launch it only showed the columns that are defined
in the nib with IB.
Rick
On 4-Aug-08, at 5:39 PM, Corbin Dunn wrote:
If you add all the columns (and remove old ones)
Am 04.08.2008 um 23:55 schrieb Bill Bumgarner:
On Aug 4, 2008, at 2:46 PM, Lars Sonchocky-Helldorf wrote:
- So does anyone on this list know of a way to backport nibs to
an earlier version (besides recreating all the nibs from scratch)?
Your problem statement doesn't make sense. The NIBs
I have a simple Cocoa app with one app controller that controls everything.
Inside my controller class I have an NSWindow, which is my main window,
and a WebView, which in IB, resides in the window.
In my app's controller class I want to be able to:
1) Intercept, inspect, and then forward
On 04 Aug 2008, at 18:54, David Duncan wrote:
How is CGImageSourceCreateWithURL failing with any error when its
return value is a CGImageSourceRef and not an OSStatus?
Well, it returns NULL, and prints in the console that it failed with
error -11... And that takes a very long time to
On Aug 4, 2008, at 3:58 PM, Nicolas Zinovieff wrote:
On 04 Aug 2008, at 18:54, David Duncan wrote:
How is CGImageSourceCreateWithURL failing with any error when its
return value is a CGImageSourceRef and not an OSStatus?
Well, it returns NULL, and prints in the console that it failed with
Are you calling setAutosaveName: yourself? Set it to nil in the nib.
Then, call it yourself. Before you call it, print out all the table
columns to see what they are. Then, load your tablecolumns that you
want (add new ones). Then call setAutosaveName:something. Change the
width of a
Can anybody point me to some good tutorials/guides for implementing
custom controls?
I've been reading the Cocoa Event Handling Guide, The reference and
accompanying conceptual guides for NSControl, NSCell, NSActionCell and
NSView, but I'm more confused than when I started.
If anyone
Hmmm. Does not seem to be doing it.
I set autoSaveFileName to nil in the nib file, then do the following
in my code:
1) add the new table columns (addTableColumn: etc.)
2) call setAutosaveName:@someFile , call setAutosaveTableColumns:YES
3) manually change width of table column in UI
On Aug 4, 2008, at 4:32 PM, Rick Hoge wrote:
Hmmm. Does not seem to be doing it.
Unfortunately, I'm out of ideas; these were mainly off the top of my
head. Without seeing your specific source code, I can't offer any more
suggestions -- it is quite possible something else is wrong (ie:
Hmmm. Does not seem to be doing it.
Unfortunately, I'm out of ideas; these were mainly off the top of my
head. Without seeing your specific source code, I can't offer any
more suggestions -- it is quite possible something else is wrong
(ie: the identifier isn't set). You probably want
Also, let me step back for a moment and recommend another approach.
Ideally, if you know all possible permutations of the columns that the
user could ever want, then just add them all at design time in the
nib, and hide (setHidden:YES) the ones you initially want hidden.
Then, add a pop on
Also, let me step back for a moment and recommend another approach.
Ideally, if you know all possible permutations of the columns that
the user could ever want, then just add them all at design time in
the nib, and hide (setHidden:YES) the ones you initially want
hidden. Then, add a pop
On Mon, Aug 4, 2008 at 5:19 PM, David Duncan [EMAIL PROTECTED] wrote:
On Aug 4, 2008, at 2:00 PM, Michael Ash wrote:
I think you may have missed the read() at the beginning of the
function, which is critical to the operation of the tool. (The purpose
is to wait for the parent process to quit,
Can anybody point me to some good tutorials/guides for implementing
custom controls?
Do you have some objection to the examples at developer.apple.com ?
http://developer.apple.com/samplecode/Clock_Control/index.html
http://developer.apple.com/samplecode/TrackBall/
Can anybody point me to some good tutorials/guides for implementing
custom controls?
Do you have some objection to the examples at developer.apple.com ?
http://developer.apple.com/samplecode/Clock_Control/index.html
http://developer.apple.com/samplecode/TrackBall/
Hi,
I'm not sure what exactly you are trying to do but i believe you need
to create a NSTextAttachment from the file wrapper and then generate
an attributed string out of it.
NSFileWrapper* filewrapper = [[NSFileWrapper alloc] initWithPath:path];
NSTextAttachment *attachment =
On Aug 4, 2008, at 3:41 PM, Lars Sonchocky-Helldorf wrote:
Am 04.08.2008 um 23:55 schrieb Bill Bumgarner:
On Aug 4, 2008, at 2:46 PM, Lars Sonchocky-Helldorf wrote:
- So does anyone on this list know of a way to backport nibs to
an earlier version (besides recreating all the nibs from
Hey Mike -
The implementation of the property will manage the retaining and the
releasing. You only need to worry about sending retain and release
messages manually if you access the instance variable directly (not
through a property). The only place you would typically need to do
that
Moderation
--
Due to circumstances, newly subscribed users are currently moderated.
Once a message or two has been posted and approved, the moderation is
lifted. Hopefully this will be a temporary issue.
On August 5,6, and 7 postings that require more than simple approval
may be
90 matches
Mail list logo