On Sep 1, 2008, at 22:25, Oleg Krupnov wrote:
What I do:
From within MyDocument's windowControllerDidLoadNib message:
[myController bind: @"currMode" toObject: self withKeyPath:@"currMode"
options:nil];
I do not override bind, unbind etc. of MyController relying on the
default implementatio
On Sep 1, 2008, at 21:50, Roger Herikstad wrote:
Sorry for the cross-posting, but I thought my issue to relevant for
both lists. I need to create an image sequence of some plots from a
graphing application that i'm writing, and I would like to be able to
do this on a background thread. Basically
I have two objects: a MyDocument (NSDocument subclass) and a custom
MyController controller (NSObject subclass). In the MyDocument there
is "currMode" property. The controller class also has the currMode
property. I want these two properties to be bound to each other
two-way, so that when either of
Hi,
Despite thread issue, I think there's a memory management issue which is
mentioned in Apple's document,"Memory Management Programming Guide for
Cocoa"(http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/
Concepts/AutoreleasePools.html).
"If you write a loop that creates many
Hi lists,
Sorry for the cross-posting, but I thought my issue to relevant for
both lists. I need to create an image sequence of some plots from a
graphing application that i'm writing, and I would like to be able to
do this on a background thread. Basically, I ask my app to plot some
signals on sc
I have a label that I want to display the date range for which I am
displaying data. So, the label would say "July 1, 2008 to September 1,
2008" for my QTD numbers. That is simple enough, but when I set the
display value binding to my startDate and endDate objects' values,
they display with
I am trying to get an NSTableView to change it's selection when
clicking on one if it's cells when it's window is not active. I have
subclassed NSTableView, overridden acceptsFirstMouse: and return YES
unconditionally, and verified that it is getting called. Can't seem to
get it to change b
On Sep 1, 2008, at 18:52, Michael B Johnson wrote:
The problem comes when I start adding the Images to the managed
store. I time how long it takes to add 100 at a time. The first
100 go in 0.022 seconds, but by the time I've inserted 4,200 of
them, it's taking 1 second/100, at 20,000 it's
HI Alex,
Yes that does work for me in two steps, but I cannot get it to work in
one.
Thank You!
-Jason
On Sep 1, 2008, at 6:14 PM, Alex Heinz wrote:
You could try:
set myPath to get the location of the current track
set myPOSIXPath to POSIX path of myPath
(or perhaps combine into one st
Am 01.09.2008 um 22:49 schrieb John Love <[EMAIL PROTECTED]>:
I am trying to convert as much as I can of my former Studio code over
to Obj-C and thanks to this Mailing List I have been successful so
far .. but here's a stumper or two:
Here are 2 AppleScript statements that work in Studio:
--
quick question:
Let's say I have 100,000 ManagedObjects of type A. Each has a one-to-
one relationship to a ManagedObject of type B, which has a reciprocal
one-to-many relationship with all the As.
Assuming I have all 100,000 As around (I've just created them in the
ManagedStore) - what's
On Sep 1, 2008, at 3:15 AM, Renaud Céroce wrote:
I read somewhere in Apple's doc that an object was responsible for
instantiating the other objects it depends on. It don't find it
logical
because I've already defined the relationships in the xcdatamodel
The reason it is logical is that your
Hi Chris,
On Tue, Sep 2, 2008 at 11:00 AM, Chris Hanson <[EMAIL PROTECTED]> wrote:
> On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote:
>
>> hi, list, I have an uninstaller application , which is used to delete
>> the files installed; and also i have a file which located in the current
>> user's d
You could try:
set myPath to get the location of the current track
set myPOSIXPath to POSIX path of myPath
(or perhaps combine into one statement, which I think should work.)
Alex
On Sep 1, 2008, at 6:00 PM, J. Todd Slack wrote:
Hi Gregory,
What is the proper way to convert an HFS Path to
Hi Gregory,
What is the proper way to convert an HFS Path to a POSIX path?
The proper way is to make whatever effort you can to avoid having an
HFS path to worry about in the first place. So if you have any
control over that end of things, I'd say avoid it. In particular, if
you're stori
On Sep 1, 2008, at 3:46 AM, XiaoGang Li wrote:
hi, list, I have an uninstaller application , which is used to
delete
the files installed; and also i have a file which located in the
current
user's directory, like the ~/Library/LaunchAgents/com..plist.
and how
can i delete this kind
J. Todd Slack wrote:
HI All,
What is the proper way to convert an HFS Path to a POSIX path?
The proper way is to make whatever effort you can to avoid having an
HFS path to worry about in the first place. So if you have any
control over that end of things, I'd say avoid it. In particular,
On 2 Sep 2008, at 3:58 am, Kevin Meaney wrote:
I'm new to NSTableView and more specifically NSOutlineView. I want
to have variable height rows in the outline view, and I need to keep
Tiger compatibility.
Tiger provides the informal protocol method heightOfRowByItem that
looks like it can
On Sep 1, 2008, at 5:27 PM, J. Todd Slack wrote:
What is the proper way to convert an HFS Path to a POSIX path?
So take: Husband:Users:slack:Music:iTunes:iTunes
Music:Adult:Resucitation:03 - Minors at night.mp3
and convert to: /Users/slack/Music/iTunes:/Tunes Music/Adult/
Resucitation/03
On 2 Sep 2008, at 6:47 am, Richard Good wrote:
So let me rephrase the question How do I create an array of constant
strings such that I have only one instance for the entire class,
or is that just not possible. If its not possible how do you
approach the problem in Objective C.
for exampl
HI All,
What is the proper way to convert an HFS Path to a POSIX path?
So take: Husband:Users:slack:Music:iTunes:iTunes
Music:Adult:Resucitation:03 - Minors at night.mp3
and convert to: /Users/slack/Music/iTunes:/Tunes Music/Adult/
Resucitation/03 - Minors at night.mp3
I thought there was
On Mon, Sep 1, 2008 at 1:47 PM, Richard Good <[EMAIL PROTECTED]> wrote:
> I'm trying to create an array of string constants to be used inside the
> Person class.
> So let me rephrase the question How do I create an array of constant strings
> such that I have only one instance for the entire class
on 2008-09-01 3:05 PM, Erik Aigner at [EMAIL PROTECTED] wrote:
> im using CGEventTap to prevent iTunes from getting the media key
> events. This works all fine, but however... when i click something on
> the UI of my application the entire system UI freezes - game over.
>
> Why is this happening?
- (void) awakeFromInsert
{
[super awakeFromInsert];
_rect = [NSEntityDescription insertNewObjectForEntityForName:@"Rect"
inManagedObjectContext:[self managedObjectContext]];
[_rect retain];
_color = [NSEntityDescription
insertNewObjectForEntityForName:@
On Sep 1, 2008, at 1:38 PM, Jean-Daniel Dupas wrote:
Unlike java, Obj-C does not have the concept of class variable.
Your static variable is a classic C variable, and C variable are not
automatically initialized to NULL.
The first time you call init, relationshipMatch may contains
anything
On Mon, Sep 1, 2008 at 1:29 PM, Graff <[EMAIL PROTECTED]> wrote:
> Note that I avoided hard-coded paths by using
> NSSearchPathForDirectoriesInDomains. This is important because hard-coded
> paths can break in many ways, such as when the user is on a non-english
> system.
Actually this is not tru
Hi Brad,
I'm just curious... having NSURLConnection and friends working, is
there a specific reason you decided to switch to sockets? Is there
something in Cocoa that you think is missing?
Cheers,
-- Tito
On Sep 1, 2008, at 9:02, Brad Gibbs <[EMAIL PROTECTED]> wrote:
You might find the
John Love wrote:
I am trying to convert as much as I can of my former Studio code
over to Obj-C and thanks to this Mailing List I have been successful
so far .. but here's a stumper or two:
Here are 2 AppleScript statements that work in Studio:
-- #1 works in Obj-C, so my question is = isn
On Mon, Sep 1, 2008 at 4:47 PM, Jean-Daniel Dupas
<[EMAIL PROTECTED]> wrote:
> It will not compile:
*facepalm*
Code written in e-mail, yada yada...
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests
Is a reflexive many-to-many relationship possible in Core Data?
Here's what I'm thinking:
I have a table (Verse) and it needs to have a to-many relationship
back to itself. The relationship name will be crossReferences. Is this
possible or will I need to come up with some contortion for Core
On Sep 1, 2008, at 11:38 AM, Jean-Daniel Dupas wrote:
Unlike java, Obj-C does not have the concept of class variable.
Your static variable is a classic C variable, and C variable are not
automatically initialized to NULL.
The first time you call init, relationshipMatch may contains
anything
Hi,
im using CGEventTap to prevent iTunes from getting the media key
events. This works all fine, but however... when i click something on
the UI of my application the entire system UI freezes - game over.
Why is this happening?
(the event tap callback seems not to be called when i click o
Hi,
I'm new to NSTableView and more specifically NSOutlineView. I want to
have variable height rows in the outline view, and I need to keep
Tiger compatibility.
Tiger provides the informal protocol method heightOfRowByItem that
looks like it can do the job I want. However it does not seem
On Mon, Sep 1, 2008 at 11:38 AM, Jean-Daniel Dupas
<[EMAIL PROTECTED]> wrote:
> Unlike java, Obj-C does not have the concept of class variable.
> Your static variable is a classic C variable, and C variable are not
> automatically initialized to NULL.
Note, for static variables, this is not true.
Am 27.08.2008 um 11:30 schrieb Amy Heavey:
I've looked at the database structure, and it looks fairly easy to
add the data, and I can do it via PHP, my problem is that each table
has a ZGUID column. This doesn't hold any user entered data, it
looks like it is either generated by CoreData,
Le 1 sept. 08 à 21:18, Kyle Sluder a écrit :
On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]>
wrote:
What I want is how to use the Java idea of a class static variable
in
Objective C
Because Objective-C doesn't have class variables (as Jean-Daniel
noted), you have to use
Very cogent description, but I'm not trying to access the array from
outside of the class.
I'm trying to create an array of string constants to be used inside
the Person class.
So let me rephrase the question How do I create an array of constant
strings such that I have only one instance for
OK, it's not Cocoa, per se... but I thought someone here might know.
I want to create an AppleScript that is on the Context (Ctrl+Click/
Right Click) menu. I've seen ways to do it with Automator - but that
puts the script in the automator menu. I want it "top-level". Anyone
have an exampl
Apparently NSUserDefaults delays its saving until the next time
through the event loop, perhaps by using one of the
performSelector:afterDelay calls, or something like that. Is it
possible that this is what's causing your issues?
I ran into this problem when trying to save user defaults at
>> I've been playing around with bindings to NSUserDefaultsController in
a very simple app to test saving preferences, but the
[sharedUserDefaultsController save:self] method seems to return
immediately
without waiting for the save operation to complete.
The save does actually take place,
On Sun, Aug 31, 2008 at 12:13 PM, Mark Allan
<[EMAIL PROTECTED]> wrote:
For what it's worth, I also get these compiler warnings for the line with
[sharedUserDefaultsController save:]
warning: multiple methods named '-save:' found
warning: using '-(void)save:(id)sender'
warning: also found '
I am trying to convert as much as I can of my former Studio code over
to Obj-C and thanks to this Mailing List I have been successful so
far .. but here's a stumper or two:
Here are 2 AppleScript statements that work in Studio:
-- #1 works in Obj-C, so my question is = isn't there a more *di
You should ask the QuickTime list.
http://lists.apple.com/mailman/listinfo/quicktime-api
--Kyle Sluder
___
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
On Sun, Aug 31, 2008 at 12:13 PM, Mark Allan
<[EMAIL PROTECTED]> wrote:
> For what it's worth, I also get these compiler warnings for the line with
> [sharedUserDefaultsController save:]
>
> warning: multiple methods named '-save:' found
> warning: using '-(void)save:(id)sender'
> warning: also fou
On Mon, Sep 1, 2008 at 2:29 PM, Richard Good <[EMAIL PROTECTED]> wrote:
> What I want is how to use the Java idea of a class static variable in
> Objective C
Because Objective-C doesn't have class variables (as Jean-Daniel
noted), you have to use a global variable. The "static" keyword in C
mean
Le 27 août 08 à 21:14, Frédéric Testuz a écrit :
Hi,
I'm writing a Leopard-target application. Therefore I'm willing to
use UTI and the new-style for the Info.plist. I red the AppKit
release notes and I thought I didn't forget something. But when I'm
calling the save panel I get this erro
Unlike java, Obj-C does not have the concept of class variable.
Your static variable is a classic C variable, and C variable are not
automatically initialized to NULL.
The first time you call init, relationshipMatch may contains anything
and may not be NULL, and so it will never be properly in
On Aug 30, 2008, at 10:31 PM, Jon Davis wrote:
So do no-ops exist solely for the sake of being there for
convention, i.e. "do this if you're implemented, ignore if not"?
I'd adjust two things about your wording.
First, a no-op method *is* implemented. It has an implementation that
happens
I'm just learning Objective C and need to understand how to declare
and use a static NSArray.
I think I may be confusing the Java concept of static and Objective
C's concept.
What I want is how to use the Java idea of a class static variable in
Objective C
Here's the code I'm trying to
On Mon, 1 Sep 2008 18:46:41 +0800, XiaoGang Li wrote:
hi, list, I have an uninstaller application , which is used to
delete
the files installed; and also i have a file which located in the
current
user's directory, like the ~/Library/LaunchAgents/com..plist.
and how
can i delete th
I am building an app that uses NSImage to repeatedly draw subrects from a
set of large .PNG files. I am also using NSSound to play sound effects. I
have been using .WAV files for the NSSound's.
In running Shark on my app recently I noticed that by far, my app spent most
of its time in: CGSConvertB
On Sep 1, 2008, at 03:15, Renaud Céroce wrote:
An NSArrayController resides in the document's nib. It is configured
to
contain objects of the ShapeManagedObject class.
I read somewhere in Apple's doc that an object was responsible for
instantiating the other objects it depends on. It don't fin
On Aug 30, 2008, at 9:31 PM, Jon Davis wrote:
So do no-ops exist solely for the sake of being there for
convention, i.e. "do this if you're implemented, ignore if not"?
In this case, that's what it's being used for. Initially (back when
we coded in assembly language,) NOP was most often u
You might find the discussion here helpful:
http://deusty.blogspot.com/search/label/NSURLRequest
After getting NSURL's to work, I decided I'd be better off with TCP
sockets. If you find yourself in the same position, you might try
AsyncSockets (also available at the link above). It's non-b
Is there an obj-C equivalent to Java's System.arraycopy() which will
allow me to easily copy a segment of an NSArray into a new array?
subarrayWithRange:
Returns a new array containing the receiver’s elements that fall
within the limits specified by a given range.
http://developer.a
Yup, that's the one... cheers.
J.
On 1-Sep-08, at 8:48 AM, Greg Titus wrote:
Hi James,
It sounds like you want -subarrayWithRange:
Hope this helps,
- Greg
On Sep 1, 2008, at 8:37 AM, James Maxwell wrote:
Hello All,
Is there an obj-C equivalent to Java's System.arraycopy() which
Hi James,
It sounds like you want -subarrayWithRange:
Hope this helps,
- Greg
On Sep 1, 2008, at 8:37 AM, James Maxwell wrote:
Hello All,
Is there an obj-C equivalent to Java's System.arraycopy() which will
allow me to easily copy a segment of an NSArray into a new array?
If so,
On Mon, Sep 1, 2008 at 8:37 AM, James Maxwell
<[EMAIL PROTECTED]> wrote:
> Hello All,
>
> Is there an obj-C equivalent to Java's System.arraycopy() which will allow
> me to easily copy a segment of an NSArray into a new array?
>
> If so, a one-liner example would be very much appreciated.
-[NSArra
Hello All,
Is there an obj-C equivalent to Java's System.arraycopy() which will
allow me to easily copy a segment of an NSArray into a new array?
If so, a one-liner example would be very much appreciated.
I looked at -getObjects:range:, but I'm not sure if this is the right
thing since it
8/31/08 4:11 PM, also sprach [EMAIL PROTECTED]:
>> I've been playing around with bindings to NSUserDefaultsController in
>>> a very simple app to test saving preferences, but the
>>> [sharedUserDefaultsController save:self] method seems to return immediately
>>> without waiting for the save operat
Ouch... You're right!
Regards,
yllan
On Mon, Sep 1, 2008 at 5:12 PM, Uli Kusterer
<[EMAIL PROTECTED]> wrote:
> On 01.09.2008, at 10:23, Yung-Luen Lan wrote:
>>
>> (Thanks to Brad Cox's DrawKit.)
>
>
> That would be Graham Cox. Brad Cox is someone else entirely :-)
>
> Cheers,
> -- Uli Kusterer
>
On Mon, Sep 1, 2008 at 6:46 AM, XiaoGang Li <[EMAIL PROTECTED]> wrote:
> hi, list, I have an uninstaller application , which is used to delete
> the files installed; and also i have a file which located in the current
> user's directory, like the ~/Library/LaunchAgents/com..plist. and how
>
Core Data: Instantiating linked entities
Hi everyone,
I have been searching the web for days now and I still have no answers to
my questions which I thought were very basic in the use of Core Data. Sorry
if this subject has already been addressed.
Here is my (simplified) model:
Shape
I am trying to figure out how I might be able to do something like
Finder does displaying disc Eject Image(When disc inserted) indicator
as part of an outline item.
I did by customizing NSTextField Cell as below
- (void) drawWithFrame:(NSRect)inRect inView:(NSView *)inView
{
// First
I have a CoreData application that I would like to use with Sync
Services to sync with Address Book (using the
com.apple.contacts.Contact schema).
I have got everything working when using properties from
com.apple.contacts.Contact that have no spaces in the name (such as
'nickname'). The
As per the initial description of your problem, you just want to
change the image of the cell when it is clicked(selected) right?
If thats the case then you don't have to deal with checking the image
name etc. neither u have to do the setImage stuff in
outlineviewSelectionDidChange
What you
On Sep 1, 2008, at 4:38 AM, Michael Robinson wrote:
I need to use a NSTableView to control data input by the user. The
table has two columns, labeled "Title" and "Content". The number of
columns is fixed.
I understand (from assorted hints I've seen online) that one may use
a NSDictionar
Please check out this link that I just this second found:
http://lists.apple.com/archives/applescript-studio/2008/Aug/msg2.html
.. and I just confirmed what this link stipulates .. nothing to do
with length:
end script
on -- crash after the space following "on"
John Love
__
Hi,
Currently I'm working with a DV camera to capture video using the
QTCapture class. Now I have a problem with processing the audio. When
I check the movie properties of the recorded movie in Quicktime it
tells me it contains 4 audio channels, 2 of them 'unused'. Now the
problem is that the movi
On 1 Sep 2008, at 7:52 pm, chaitanya pandit wrote:
But even if i change the textView's frame by increasing it's height
so that it occupies the bottom most subview, i don't see the
vertical scroller. Am i missing something?
NSTextView doesn't have a vertical scroller on its own. If you put
hi, list, I have an uninstaller application , which is used to delete
the files installed; and also i have a file which located in the current
user's directory, like the ~/Library/LaunchAgents/com..plist. and how
can i delete this kind of file, i have tried the
AuthorizationExecuteWithPrivi
In my application, i want to increase the height of the NSTextView in
order to make it's subview's visible. The subview's exceed further
down the area occupied by the text.
But even if i change the textView's frame by increasing it's height so
that it occupies the bottom most subview, i don'
Hi
I need to use a NSTableView to control data input by the user. The
table has two columns, labeled "Title" and "Content". The number of
columns is fixed.
I've read what I can find on the internet, but a lot of it goes way
over my head (I'm fairly new at ObjC and xCode -- coming from J
On 01.09.2008, at 10:23, Yung-Luen Lan wrote:
(Thanks to Brad Cox's DrawKit.)
That would be Graham Cox. Brad Cox is someone else entirely :-)
Cheers,
-- Uli Kusterer
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
___
Coc
The right place to change the image of the cell would be in the
outlineView's delegate method:
- (void)outlineView:(NSOutlineView *)outlineView willDisplayCell:
(id)cell forTableColumn:(NSTableColumn *)tableColumn item:(id)item
try [[cell image] name] to get the name of the image
-chaitanya
FunTextField is provided as an example of NSTextInput protocol.
Moreover, it also shows how to lay text along arbitrary path. (Thanks
to Brad Cox's DrawKit.)
Download:
http://yllan.org/code/
What is FunTextField:
http://yllan.org/blog/archives/285
My article on NSTextInput:
http://yllan.org/blog
76 matches
Mail list logo