Hi all,
Now I am developing an cocoa application. One of the app's function is to
synchronize the audio and video files to the iPod/iPhone. The function is same
as the iTunes Syncing function.
So I want to know about the principle of the iTunes Syncing. And is there
any framework to
2009/9/29 James ldl0313...@163.com:
Now I am developing an cocoa application. One of the app's function is to
synchronize the audio and video files to the iPod/iPhone. The function is same
as the iTunes Syncing function.
You have no access to the user's iTunes or iPod libraries.
So I
Folks;
I have converted to using SL; XC3.2; IB 3.2.
I have an app with a deployment target of 10.4
There are no IB warnings; the dev target is IB 3.2
Things have been working reasonably well but now when I test on a
Tiger I crash immediately
Leopard and Snow Leopard are fine
2009-09-30
On 30/09/2009, at 4:45 PM, Steve Cronin wrote:
I'm using .xib files but I don't what I should even be looking for.
What is this trying to tell me?
Looks like your nib contains a Leopard-only class, and therefore it
can't dearchive it on Tiger. Seems to be some sort of private image
rep
Check your IB compatibility settings. Looks like you've archived an
image into your nib that doesn't exist on Tiger.
--Kyle Sluder
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the
Kyle * Graham;
The IB Info says:
Deployment Target: 10.4
Development Target: IB 3.2
There are no error or warnings!
What should I be looking at?
Steve
On Sep 30, 2009, at 1:56 AM, Kyle Sluder wrote:
Check your IB compatibility settings. Looks like you've archived an
image into your nib
On Sep 29, 2009, at 11:30 PM, Kyle Sluder wrote:
2009/9/29 James ldl0313...@163.com:
Now I am developing an cocoa application. One of the app's
function is to
synchronize the audio and video files to the iPod/iPhone. The
function is same
as the iTunes Syncing function.
You have no
After I added an Entity called Object, I get the following message
when executing my application on the iPhone:
objc[4219]: Class Object is implemented in both /usr/lib/
libobjc.A.dylib and /var/mobile/Applications/BFDFC14C-DB60-44BB-8118-
D2AAB39E2EE6/MyApp.app/MyApp. One of the two will be
On 30 Sep 2009, at 09:13, Greg Parker gpar...@apple.com wrote:
The static analyzer tries to enforce Cocoa's memory management
convention, where the retain-edness of the return value depends on the
name of the method. By that convention, if the method name contains
new or copy or alloc then the
Folks;
I opened the .xib file in a text editor -searched for 'NSCoreUIImageRep'
I found one instance (thankfully) and by 'reading' the text was able
to determine that it was a matrix of 2 radio buttons.
I removed the offending matrix and re-instantiated a fresh one.
I monitored the .xib
I am at a loss at how to display a single string at the bottom left in
a view with core animation.
The view is actually a ScreensaverView, and the string is a status
message that should be always in front of the other layer(s).
The other layer contains just an image; the layer gets removed at
This doesn't sound directly like a Core Data problem as such. Note how
the message mentions nothing about entities, but instead is
complaining you've got two separate classes with the same name. So you
should be fine to have an entity named Object but don't make the
classname that. Call it
Sorry for asking again about NSTimers.
My question is: I've got a modal panel (a config sheet in a
screensaver) with a text field, and when I enter some text there one
of my methods, -changeSomething: say, gets called.
Is changeSomething executed in a different thread than my main code?
I
On Sep 30, 2009, at 3:53 AM, Alex Reynolds wrote:
After I added an Entity called Object, I get the following message
when executing my application on the iPhone:
objc[4219]: Class Object is implemented in both /usr/lib/
libobjc.A.dylib and /var/mobile/Applications/BFDFC14C-DB60-44BB-8118-
On Sep 30, 2009, at 6:01 AM, Gabriel Zachmann wrote:
My question is: I've got a modal panel (a config sheet in a
screensaver) with a text field, and when I enter some text there one
of my methods, -changeSomething: say, gets called.
Is changeSomething executed in a different thread than my
Let me answer my own question myself, because I have found a
(seemingly) good way -- using run loops in NSEventTrackingRunLoopMode
mode, like the [NSView dragImage] does.
// end date to make sure the run loop will be endless in case of a
program mistake
NSDate* endDate = [NSDate
On Sep 29, 2009, at 7:10 AM, Timothy Reaves
trea...@silverfieldstech.com
wrote:
What makes you think you can? Logically, you shouldn't be
able. I'd
imagine selectedObjects is always going to return an index set; it'd
just be empty with no selection. I did try comparing it to
On 30 Sep 2009, at 13:31, Timothy Reaves wrote:
On Sep 29, 2009, at 7:10 AM, Timothy Reaves
trea...@silverfieldstech.com
wrote:
What makes you think you can? Logically, you shouldn't be
able. I'd
imagine selectedObjects is always going to return an index set; it'd
just be empty with
Hi,
I have a class
@interface Ray : NSObject {
...
NSBezierPath*path;
...
}
@property (copy)NSBezierPath*path;
@end
an instance of which is accessed in another class:
- (void)drawRect:(NSRect)rect
{
NSBezierPath
On Wed, Sep 30, 2009 at 9:02 AM, Colin Howarth co...@howarth.de wrote:
I thought the (copy) attribute would mean that
temporaryPathPointerWhichIsSupposedToBeDifferent would be, well, a copy of
the original path instance (which conforms to the NSCopying protocol).
That's not what (copy) does.
Other way around. The copy happens when you *set* the property.
So ray.path = OriginalPathPointerYouStartedWith;
will copy OriginalPathPointerYouStartedWith and then set ray's member
variable to that copy. However when you READ the property, it just
returns what's in the member
Thanks Sherm, and Roland.
All clear. :-)
I'll leave it with
path = [ray.path copy]; // I don't do retain count stuff :-)
for now.
But I'm left wondering, from a clean coding and/or language design
point of view, is it *obvious* that the copy attribute would apply to
setting as
I'm going to take a stab in the dark and predict that you *don't*
have rearranges content automatically checked for the array
controller,
I do.
and that checking it will cause the error message to go away.
It does not.
Try unchecking it.
Hi,
When I use [[NSRunLoop currentRunLoop] configureAsServer]; after
creating a service using NSConnection, it works.
But -configureAsServer is declared as deprecated with no alternative
suggested.
I tried removing it and the code doesn't work.
server code snippet: (doesn't work)
On Sep 30, 2009, at 10:22, Bryan Matteson wrote:
I'm going to take a stab in the dark and predict that you *don't*
have rearranges content automatically checked for the array
controller,
I do.
and that checking it will cause the error message to go away.
It does not.
Try unchecking
On Sep 30, 2009, at 3:41 AM, Gabriel Zachmann wrote:
This sort of works, EXCEPT that the string is always behind the image!
I tried to set the zPosition of my image sub-layer to either +1.0 or
-1.0, to no avail.
I think layers are always drawn in front of the view's own content.
I also
On Sep 30, 2009, at 5:03 AM, Ken Thomases wrote:
However, exactly because it's so tricky, the Cocoa frameworks are
not going to just arbitrarily invoke your code on some random thread.
Yup. Generally, the only time your code will run on a secondary thread
is if
— You create an NSThread
—
On Sep 30, 2009, at 10:36, Bryan Matteson wrote:
May also want to look at this.
http://www.mail-archive.com/cocoa-dev@lists.apple.com/msg31802.html
It seems to be very possible that it may be a bug, but it's also a
common coding mistake as well.
Hope it works itself out.
Bryan,
I looked
Although, to be clear, you *can* do this is in code, just not the way you
were doing it. You have to make sure you're talking to this instance at the
right moment, i.e. before the window appear but after the instance (the text
field) has been assembled by the nib. That moment, of course, is
It was actually deprecated in 10.5 according to the header, and the
10.5 release notes explain:
Deprecated NSRunLoop API
The -configureAsServer method is deprecated in 10.5. It never did
anything, so there was never a point in calling it in Mac OS X.
Since time immemorial the
On Wed, 30 Sep 2009 15:02:45 +0200, Colin Howarth co...@howarth.de said:
@property (copy) NSBezierPath *path;
an instance of which is accessed in another class:
temporaryPathPointerWhichIsSupposedToBeDifferent = [ray.path];
Why isn't it doing what I think it should do?
Take a look at the docs:
Hi,
Very basic error:
did [defaultConnection retain];
in server code.
Seems very basic but when I was doing - configureAsServer, it was
working without retaining.
Thanks,
Nick
On 30-Sep-2009, at 7:53 PM, Nick Rogers wrote:
Hi,
When I use [[NSRunLoop currentRunLoop] configureAsServer];
I have an Array of strings and want to remove CalTasks with titles of any of
the strings.
I know I can loop through a array with
for(NSString *title in array) {
}
and delete tasks with
removeTask:title error:nil
But it won't let me delete a CalTask object with the strings from the Array
On 30 Sep 2009, at 17:32, Joshua Garnham wrote:
I have an Array of strings and want to remove CalTasks with titles
of any of the strings.
I know I can loop through a array with
for(NSString *title in array) {
}
and delete tasks with
removeTask:title error:nil
But it won't let me delete a
Before entering sleep I would like to send small amounts of data via
async instances of CFSocket to the local and some remote hosts.
So I register for the sleep notification:
[[[NSWorkspace sharedWorkspace] notificationCenter] addObserver: self
selector: @selector(appWillSleep:)
If you're interested in playing with Core Location and Location
Services on a Mac running Snow Leopard, I've posted updated sample
code and version 1.0.3 of Lucubrator, a free test application, to my
Web site at http://www.quecheesoftware.com/Quechee_Software/Lucubrator.html
.
The only
On Sep 30, 2009, at 4:04 AM, I. Savant wrote:
Whatever the answer, the simple solution is to change your entity's
name.
Unfortunately, that simple solution means parting ways with the naming
scheme of the source I'm pulling data from and changing the naming
scheme for all my other
If by 'finagle' you mean 'run', then yes, that should work. ;-)
There's a little bit more detail here:
http://developer.apple.com/mac/library/qa/qa2004/qa1340.html
-Jeff
On Sep 30, 2009, at 11:59 AM, jonat...@mugginsoft.com wrote:
Before entering sleep I would like to send small amounts of
Greetings,
CocoaHeads is an international Mac programmer's group. Meetings are
free and open to the public. We specialize in Cocoa, but everything
Mac programming related is welcome.
Australia
Sydney- Thursday, October 1, 2009 18:30.
Canada
Ottawa/Gatineau- Thursday, October 8, 2009
I've been tripped up by this more than once: Did you add your new
CATextLayer to your layer hierarchy?
On Sep 30, 2009, at 6:41 AM, Gabriel Zachmann wrote:
I also tried to make my view layer hosted and add a CATextLayer with
the string property set to my message string (and font and
As a general rule, you want to avoid attempting to name classes with
such generic names. It makes you very much more likely to end up with
a class name conflict somewhere, especially in large projects.
Classname prefixes are usually what's used to help ensure there are no
such conflicts.
On Sep 30, 2009, at 1:11 PM, Alex Reynolds wrote:
Unfortunately, that simple solution means parting ways with the
naming scheme of the source I'm pulling data from and changing the
naming scheme for all my other entities/classes, too, which I was
hoping to avoid. But thanks to all for the
Alex Reynolds wrote:
Unfortunately, that simple solution means parting ways with the
naming scheme of the source I'm pulling data from and changing the
naming scheme for all my other entities/classes, too, which I was
hoping to avoid. But thanks to all for the confirmation.
Maybe:
Hi all,
Last night I was trying to use the imageCorrection property on an
IKImageView, but it wasn't working for me.
Setting the property to a CIFilter didn't have any effect. The
property remained nil.
Is there something I'm missing?
Thanks,
jon
On Sep 30, 2009, at 9:17 AM, Christopher Kane wrote:
Since time immemorial the implementation looked like this:
- (void)configureAsServer {
}
So any apparently beneficial effect of calling it was entirely
coincidental.
No way! I know people who were cured of cancer by calling -
On Sep 30, 2009, at 12:32, Joshua Garnham wrote:
I have an Array of strings and want to remove CalTasks with titles
of any of the strings.
I know I can loop through a array with
for(NSString *title in array) {
}
and delete tasks with
removeTask:title error:nil
But it won't let me delete a
I'm seeing very poor performance when programmatically scrolling an
NSTextView under certain conditions.
The text view is scaled using [NSView scaleUnitSquareToSize:], and the
scroll amounts are fractional (I need to exactly match the appearance
of a smaller text view that is also being
On Sep 30, 2009, at 12:56 AM, Luke Evans wrote:
Well, I'm more than happy to file a bug, as it has been tricky to
figure out (and I would probably still be at it without your
interjection).
There are several ways to frame the problem of course: it could be a
documentation bug... things
If anyone has any clue at all on this, or even some random thing that
i could try to get this to work, i'd be most syked. thanks again.
Just before we put up the dialog, we enable undo, cut, copy,
paste, clear, and select all. these items all have the correct
HICommand assigned (eg:
Why was the menu item ever not connected to First Responder?
--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
we set the menu itself to be it's own first responder
this app came from legacy carbon code and we still go thru the ancient
menu dispatching mechanism. the menu's own first responder all it
does is take note of the menu ID and menu item index and fake up the
result of the old menuselect
On Sep 30, 2009, at 9:59 AM, jonat...@mugginsoft.com wrote:
Before entering sleep I would like to send small amounts of data via
async instances of CFSocket to the local and some remote hosts.
It's usually best to close open sockets entirely before going to
sleep. The socket might not
I am currently busy re-inventing the wheel in the form a code editor.
I support Shift Left and Shift Right.
I would like to support Undo on Shift Left.
I'm wondering how this should be done as this operation modifies both
the selected range(s) and the text.
I searched the archives, the
I don't think anyone has cared enough to file a bug on this.
I don't get it. There's an open manhole in the street with the manhole
cover lying right next to it, and the problem is that no one cared
enough to call the Department of Works to complain?
This has come up 3 or 4 times in about
On 30 Sep 2009, at 20:57, Jens Alfke wrote:
On Sep 30, 2009, at 9:59 AM, jonat...@mugginsoft.com wrote:
Before entering sleep I would like to send small amounts of data
via async instances of CFSocket to the local and some remote hosts.
It's usually best to close open sockets entirely
To continue a bit on this idea, I believe that the static analyzer
only analyzes a single method at a time. I don't believe it recurses
into called methods to do analysis. (Can any of the clang-sa folks
confirm this?)
Dave
On Sep 29, 2009, at 6:31 PM, Jens Alfke wrote:
On Sep 29,
Not sure though that having called IOCancelPowerChange(,) wether it
can be revoked before the 30 secs are up.
Perhaps a call to IOAllowPowerChange() will be effective.
The above is garbled nonsense
.
I can achieve the desired goal by NOT calling either
IOCancelPowerChange() or
Hey everyone. I'm completely at a loss on this one. Here's a pic of
what's happening to the toolbar.
http://img268.imageshack.us/img268/9236/screenshot20090930at337.png
It happens sometimes when I resize the toolbar and stays until I close
and reopen the window. It's just a standard toolbar
On Sep 29, 2009, at 8:00 PM, Dave DeLong wrote:
To continue a bit on this idea, I believe that the static analyzer
only analyzes a single method at a time. I don't believe it
recurses into called methods to do analysis. (Can any of the clang-
sa folks confirm this?)
It will perform
Hi Bryan,
It's not much info to go on... perhaps NSToolbar objects to the Spice
Girls or Gloria Estafan? =)
What have you tried (.com)?
The screenshot makes a lot of the controls look... nonstandard.
Perhaps try removing some of your customisations one at a time and see
how it affects the
so am i just out of luck on this? i am completely out of ideas.
On Sep 30, 2009, at 12:57 PM, David M. Cotter wrote:
we set the menu itself to be it's own first responder
this app came from legacy carbon code and we still go thru the
ancient menu dispatching mechanism. the menu's own first
I've come across a few different user-contributed Cocoa UI elements,
like one that provided a Mail or iTunes-like sidebar. But now I can't
find them. I can't seem to find the right Google search term, either.
Can anyone point me to some of these libraries?
Thanks!
--
Rick
On Sep 30, 2009, at 5:57 PM, David M. Cotter wrote:
so am i just out of luck on this? i am completely out of ideas.
So, forgive me if this was covered earlier in the thread... You have
set the open panel to allow multiple selections, right?
[panel setAllowsMultipleSelection:YES]
It's not much info to go on... perhaps NSToolbar objects to the Spice
Girls or Gloria Estafan? =)
What have you tried (.com)?
;) Yea I'm sorry I guess it's not much to go on, that's how I feel
though.
Basically I have a NIB file controlled by NSViewController that
contains a view and a
On Sep 30, 2009, at 6:00 PM, Rick Mann wrote:
I've come across a few different user-contributed Cocoa UI elements,
like one that provided a Mail or iTunes-like sidebar. But now I
can't find them. I can't seem to find the right Google search term,
either.
Can anyone point me to some of
On 9/30/09 4:00 PM, Rick Mann said:
I've come across a few different user-contributed Cocoa UI elements,
like one that provided a Mail or iTunes-like sidebar. But now I can't
find them. I can't seem to find the right Google search term, either.
Can anyone point me to some of these libraries?
no, this is the save dialog. i'm talking about the text edit field.
i want to be able to cut / copy / paste / select all in the TE field
of the save dialog
On Sep 30, 2009, at 4:05 PM, Ken Thomases wrote:
On Sep 30, 2009, at 5:57 PM, David M. Cotter wrote:
so am i just out of luck on
I'm looking at ways of grouping some Core Data objects in a outline
view. What I have are 3 or 4 different entities, and I want each of
the objects of each type to appear under a parent item in the outline
view.
Currently, I've implemented a simple table view and it's bound to an
array
Our CocoaHeads group has a decent list of code like this too:
http://cocoaheads.byu.edu/resources/user-interface
(You're welcome to add to it, too!)
Dave
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or
On 9/30/09 4:22 PM, Rick Mann said:
I'm looking at ways of grouping some Core Data objects in a outline
view. What I have are 3 or 4 different entities, and I want each of
the objects of each type to appear under a parent item in the outline
view.
Currently, I've implemented a simple table view
On Sep 30, 2009, at 16:30:24, Sean McBride wrote:
On 9/30/09 4:22 PM, Rick Mann said:
I'm looking at ways of grouping some Core Data objects in a outline
view. What I have are 3 or 4 different entities, and I want each of
the objects of each type to appear under a parent item in the outline
On 01/10/2009, at 9:20 AM, Bryan Matteson wrote:
I was just reminded of something. I use GC in my app, and unless I
specifically disable collection for a window controller, it's
destroyed as soon as it loses key. I solved it by setting the
controller as the delegate of the window,
Hi all,
I can see how to add/remove an accessory view to NSPrintPanel using -
addAccessoryController:, but I'm baffled about when I get the
opportunity to call this. Currently I'm adding an accessory view to
the Page Setup panel in my document's -preparePageLayout: method, but
really
On Sep 30, 2009, at 16:22:45, Rick Mann wrote:
I'm looking at ways of grouping some Core Data objects in a outline
view. What I have are 3 or 4 different entities, and I want each of
the objects of each type to appear under a parent item in the
outline view.
Currently, I've implemented
The doco for closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo:
says that it should call
the didCloseAllSelector. How would one do that? This is what I am doing:
[delegate performSelector:didCloseAllSelector withObject:(id)YES
withObject:contextInfo];
but I'm nervous about that
The right way is to make sure something in your program retains a pointer to
your window controller. Sometimes there will be an obvious place, like a member
of the object that created the window controller. That is most typical. Worst
case is you retain a pointer in some global variable or
On 01/10/2009, at 11:00 AM, Chris Idou wrote:
The doco for
closeAllDocumentsWithDelegate:didCloseAllSelector:contextInfo: says
that it should call
the didCloseAllSelector. How would one do that? This is what I am
doing:
Chris, this stuff is a right old mess. No wonder you're confused.
Hi Keith,
I have certain custom text attributes that are used in my
NSTextStorage to which I would like to add temporary attributes via
the NSLayoutManager.
What version of OSX are you testing under? Under Leopard there's a bug
in -[NSLayoutManager
If it displays a window it should be an app. If its an app it should be in
/Applications and it should be started from Login Items.
You can't install it automatically by security design. But once you get the
user to install and run it, there are no permissions issues in adding it to
login
On Sep 30, 2009, at 6:42 PM, Graham Cox wrote:
I can't actually see an easy way to invoke the callback selector
with the signature as given - you need to pass it the document
(self), a BOOL and the contextInfo. You can invoke the method
directly on the delegate easily enough, but since
Does anybody know why releasing the NSArray obtained from
NSSearchPathForDirectoriesInDomain causes my iPhone app to crash?
Here's my code:
+ (NSString *)dataFilePath:(NSString *)filename {
NSArray *paths = NSSearchPathForDirectoriesInDomains
(NSDocumentDirectory, NSUserDomainMask, YES);
What I have is a document based app, but it automatically saves everything - I
don't want to ask the user. So I'm saving all my documents in
closeAllDocumentsWithDelegate. It's working pretty good, the only major hassle
is the app doesn't die on machine shutdown, presumably because I wasn't
On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote:
NSInvocation is the correct way to handle this. See the 10.5
release notes, and search for NSInvocation on that page:
http://developer.apple.com/mac/library/releasenotes/Cocoa/AppKitOlderNotes.html#X10_5Notes
That should bring you to a
Yes, because it's not yours to release.
RTFMMGA:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/2043-BEHDEDDB
--Graham
On 01/10/2009, at 12:07 PM, Anthony Smith wrote:
Does anybody know why
Thank you Chris, Rob. I thought as much, but then I'm new to using GC.
I thought that because I was able to access the window controller
through the window that it was still reachable in the object graph.
You know, like
[[aSampleView window] windowController];
Thought that meant there was
Awesome! Thanks!
On Sep 30, 2009, at 10:18 PM, Graham Cox wrote:
Yes, because it's not yours to release.
RTFMMGA:
http://developer.apple.com/mac/library/documentation/Cocoa/Conceptual/MemoryMgmt/Articles/mmObjectOwnership.html#//apple_ref/doc/uid/2043-BEHDEDDB
--Graham
On
Does the Cocoa memory management documentation cover functions? It
specifically refers to ...a method whose name begins with I
wonder if something like the CF Create rule applies to Foundation?
Of the following Create functions
NSCreateMapTable
NSCreateZone
NSCreateHashTable
I cannot figure out why this does not work:
Phase *thisPhase = [phases objectAtIndex:i];
float testmode = [thisPhase mode];
float testmode2 = [[phases objectAtIndex:i] mode];
Following along with the code execution in the debugger, testmode gets
Hi,I wrote a small program today that uses MPMoviePlayerController, and when
I run it and the movie starts playing, I get the following message on the
console:
2009-09-30 17:44:43.683 PlayVideo[2128:4a03] Cannot find executable for
CFBundle/CFPlugIn 0x7b49e70
On Sep 30, 2009, at 7:15 PM, Graham Cox wrote:
On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote:
That should bring you to a helpful discussion titled Advice for
Overriders of Methods that Follow the
delegate:didSomethingSelector:contextInfo: Pattern.
Wow. I thought it was byzantine
On Wed, Sep 30, 2009 at 6:41 PM, David Hirsch dhir...@mac.com wrote:
I cannot figure out why this does not work:
Phase *thisPhase = [phases objectAtIndex:i];
float testmode = [thisPhase mode];
float testmode2 = [[phases objectAtIndex:i] mode];
On Wed, Sep 30, 2009 at 9:39 PM, Adam R. Maxwell amaxw...@mac.com wrote:
On Sep 30, 2009, at 7:15 PM, Graham Cox wrote:
On 01/10/2009, at 12:06 PM, Adam R. Maxwell wrote:
That should bring you to a helpful discussion titled Advice for
Overriders of Methods that Follow the
Still learning the Cocoa Window Architecture...
Goal: I want to separate my MainWindow out of MainMenu.xib into its own
.xib: MainView.xib.
1) I create a new Cocoa Application (not document-based)
2) I create a MainWindow.xib and MainWindowController.h/.m setting
appropriately the relationship
93 matches
Mail list logo