Hi,
I've been struggling to find any information on writing visualizers
for iTunes 10.4. Is there a modern equivalent of the venerable
TN2016?
-Jonathan
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or modera
Le 21 juil. 2011 à 07:24, Peter C a écrit :
> Vincent, I meant changing to write to ~/Library/Preferences, user directory.
Ah, okay. But do not forget to use the proper API to get the ad hoc ROOT
directory!
Vincent___
Cocoa-dev mailing list (Cocoa-dev
On 20 Jul 2011, at 2:30 PM, Gabriel Roth wrote:
> My application displays a non-editable text string in an NSTextField. When
> the user adjusts a slider, the entire window and all its subviews—including
> this text field—should resize smoothly.
>
> My first thought was to bind the font size of t
Please point me to another list if there's one more appropriate.
Seems that my iTunes visualizer doesn't work in Lion. Works fine in iTunes 10.4
under Snow Leopard. Under Lion 64-bit it of course completely fails to load. If
I start iTunes in 32-bit mode it doesn't complain or log anything but a
I suppose I had to get to core data migration one day … :(
I've read the documentation a couple of times and it says that the default
migration process finishes by renaming the old store to the same thing with a
tilde prefix. Does that mean you, the programmer, are responsible for deleting
it a
Yes, if you want the file deleted you have to do it yourself. There are
certainly cases where you would not want to delete the file. For example for a
document, the user may want to keep that archive around in case they need to
revert to a previous version of the app, or share it with someone el
Hi,
I've been using Scripting Bridge in one of my apps. Now that iTunes is a
native Cocoa app, I'm wondering what effect this is going to have on Scripting
Bridge compatibility, and whether there is or will be a new API for interacting
with and controlling iTunes? Google and documentation se
Hi All,
I have an application here that loads (pushes) a view during the users
navigation experience. This new view is split screen like so:
|CONTENT |
|_|
| |
|SUBVIEW |
|_|
I need a new navigation controller to
Hi,
while on MacOs X 10.6 and earlier this piece of code worked properly, on
Lion I get a different result (bug).
I have to take the MacAddress en0. May you please tell me where I do wrong?
NSString *tempFilePath = @"/Users/john/OutCocoa.txt";
NSString *commandLine = [NSString stringWithFor
Rather than using other processes, look into the System Configuration framework.
- Gary L. Wade (Sent from my iPhone)
On Jul 21, 2011, at 8:28 AM, Leonardo wrote:
> Hi,
> while on MacOs X 10.6 and earlier this piece of code worked properly, on
> Lion I get a different result (bug).
> I have to
I have a private framework that is included in a project. Many of the project
classes descend from a class in the framework. All of these descendent classes
implement copyWithZone, encodeWithCoder and initWithCoder and thus respectively
calls each on super. I get warnings stating that "MySuperCl
Great - thanks for this - gets me started, I've found the documentation quite
dense and soon I have to pitch in and just give it a go (I have a model I need
to update in my test app and I really don't want to toss the data).
I need to hunt around the NSManagedObjectModel class a bit more, clear
I'm looking for ideas on what might cause this behavior: an existing app that
was compiled with 10.6 SDK runs fine on 10.6 and 10.5. When run on 10.7,
document windows (and their window controllers and NSDocuments) do not get
released when the window is closed.
All thoughts appreciated.
___
On Jul 21, 2011, at 9:51 AM, Chris Tracewell wrote:
> I have a private framework that is included in a project. Many of the project
> classes descend from a class in the framework. All of these descendent
> classes implement copyWithZone, encodeWithCoder and initWithCoder and thus
> respective
Le 21 juil. 2011 à 17:29, Ross Carter a écrit :
> I'm looking for ideas on what might cause this behavior: an existing app that
> was compiled with 10.6 SDK runs fine on 10.6 and 10.5. When run on 10.7,
> document windows (and their window controllers and NSDocuments) do not get
> released when
NSCopying is a protocol, likewise NSCoding. Have you declared that your class
implements the protocol in the header file, for example:
@interface MySuperClass : NSObject {
...
}
...
@end
~Phil
On Jul 21, 2011, at 10:51 AM, Chris Tracewell wrote:
> I have a private framework that is in
On Jul 21, 2011, at 10:29 AM, Ross Carter wrote:
> I'm looking for ideas on what might cause this behavior: an existing app that
> was compiled with 10.6 SDK runs fine on 10.6 and 10.5. When run on 10.7,
> document windows (and their window controllers and NSDocuments) do not get
> released wh
> I'm looking for ideas on what might cause this behavior: an existing app that
> was compiled with 10.6 SDK runs fine on 10.6 and 10.5. When run on 10.7,
> document windows (and their window controllers and NSDocuments) do not get
> released when the window is closed.
NSDocuments on 10.7 are s
After running into difficulties in the second method I proposed, I decided
that the best universal solution was to subclass UIViewController
(POViewController), add an ivar for the popover, and add methods to dismiss
and change height (mainly for dynamically matching table content and for
rotation)
Hi,
> NSString *tempFilePath = @"/Users/john/OutCocoa.txt";
> NSString *commandLine = [NSString stringWithFormat:@"/sbin/ifconfig en0 |
> grep ether | cut -d' ' -f 2 > \"%@\" 2>&1", tempFilePath];
> sprintf(cmd, "/bin/sh -c %s", [commandLine UTF8String]);
Quote the command.
sprintf (cmd, "
On Jul 21, 2011, at 10:23 AM, Gordon Apple wrote:
> After running into difficulties in the second method I proposed, I decided
> that the best universal solution was to subclass UIViewController
> (POViewController), add an ivar for the popover
Right, that's the sort of thing I meant by "store a
I'm curious if there is a way to NSLog how long some code takes to execute
(outside of using Instruments).
In Flash one can use getTimer and see how much time passed inline. Is there
a way to do this in Obj-C?
Would one use a NSDate object?
Google Voice: (508) 656-0622
Twitter: eric_dolec
Hi guys,
I updated to Lion yesterday, but I'm having an issue now with [NSData
dataWithContentsOfFile]
This code is to generate a hash based on 64kb of start and 64kb of end from
a file:
+ (NSString *)generateHashFromPath:(NSString *)path
{
const NSUInteger CHUNK_SIZE = 65536;
NS
Yes
On Thu, Jul 21, 2011 at 10:59, Eric E. Dolecki wrote:
> I'm curious if there is a way to NSLog how long some code takes to execute
> (outside of using Instruments).
>
> In Flash one can use getTimer and see how much time passed inline. Is there
> a way to do this in Obj-C?
>
> Would one use
Please check the NSData.h header and Foundation release notes for Lion.
Because mapping files on non-local drives (which may be disconnected or removed
at any moment, resulting in a crash if you attempt to access parts of the file
that haven't been faulted in) is unsafe, NSData on Lion has chang
On Jul 21, 2011, at 1:01 PM, Wilker wrote:
> I updated to Lion yesterday, but I'm having an issue now with [NSData
> dataWithContentsOfFile]
> Before Lion, it really works well and fast, even on Wifi external drive
> (through Airport Extreme), but now it get's really slow... I did some
> checks,
> I'm curious if there is a way to NSLog how long some code takes to execute
> (outside of using Instruments).
>
> In Flash one can use getTimer and see how much time passed inline. Is there
> a way to do this in Obj-C?
You can use the basic old std C routines like clock ().
Vincent
I’ve got a data model that looks sort of like this (expressed as JSON):
[{“uuid": “abcdef”, “name": [“Fred”, “Smith”]} … ]
I want to bind an array of these to an NSTableView, with the first and last
name in different columns. So I need to create a keypath that refers to the
first or secon
On Jul 21, 2011, at 11:33 AM, vincent habchi wrote:
> But anyhow, as somebody pointed out, there are far better ways to get the MAC
> address of the en0 port than executing BSD commands in a subprocess.
Apple sample code GetPrimaryMACAddress works well with Lion.
http://developer.apple.co
On Thu, Jul 21, 2011 at 12:08 PM, Jens Alfke wrote:
> I’ve got a data model that looks sort of like this (expressed as JSON):
> [{“uuid": “abcdef”, “name": [“Fred”, “Smith”]} … ]
> I want to bind an array of these to an NSTableView, with the first and last
> name in different columns. So I
On Jul 21, 2011, at 9:33 AM, Nick Zitzmann wrote:
>
> On Jul 21, 2011, at 9:51 AM, Chris Tracewell wrote:
>
>> I have a private framework that is included in a project. Many of the
>> project classes descend from a class in the framework. All of these
>> descendent classes implement copyWithZo
> Just a long shot, but does this have anything to do with the new ARC
> (Automatic Reference Counting)?
Joanna: The app uses GC, and was built long before ARC was announced.
Everything gets collected on 10.6. I'm puzzled how ARC could affect GC.
> Have you used Instruments to find out why? If
Peter C wrote:
Graham, I used to store serial number codes for all users, in this
directory.
Looks like I have change it to save it user library directory.
The /Users/Shared/ directory is public-writable, with sticky-bit set
(unless that changed in Lion, too). See 'man sticky' for an
Wilker wrote:
Before Lion, it really works well and fast, even on Wifi external
drive
(through Airport Extreme), but now it get's really slow... I did some
checks, and now its reading the entire file... instead of just read
128kb
(start and end). Anyone have an ideia on why its happening now
On Jul 19, 2011, at 3:25 PM, Amy Gibbs wrote:
> Hi,
>
> I've read everything that says printing is easy...but I'm struggling with it!
>
> I have googled, but nothing quite seems to fit my situation, I just want a
> single page.
>
> In my app I have customer orders, and I just want to print ou
I'm not seeing a user/library/Preferences folder on Lion. Where are they
hiding application pLists in Lion (searching for them doesn't find any).
Tony
3CAAM
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or m
Le 21 juil. 2011 à 21:34, John Cate a écrit :
> I'm not seeing a user/library/Preferences folder on Lion. Where are they
> hiding application pLists in Lion (searching for them doesn't find any).
The folder is there, just hidden. Use Finder - Go to folder and type it in.
Joanna
--
Joanna Cart
They've hidden the user library from casual users. Probably a good thing.
You can open it by going to the Go menu in Finder, choosing Go to Folder...,
and typing "~/Library". It's probably pretty easy to make it a Favorite or to
write an AppleScript script, but I haven't gotten that far yet.
O
On Jul 21, 2011, at 1:46 PM, Bill Cheeseman wrote:
> They've hidden the user library from casual users. Probably a good thing.
>
> You can open it by going to the Go menu in Finder, choosing Go to Folder...,
> and typing "~/Library". It's probably pretty easy to make it a Favorite or to
> writ
On Jul 21, 2011, at 2:46 PM, Bill Cheeseman wrote:
> They've hidden the user library from casual users. Probably a good thing.
>
> You can open it by going to the Go menu in Finder, choosing Go to Folder...,
> and typing "~/Library". It's probably pretty easy to make it a Favorite or to
> writ
Terminal commands to unhide user/Library in Lion
chflags nohidden ~/Library/
chflags hidden ~/Library
Tom Hohensee
> I'm not seeing a user/library/Preferences folder on Lion. Where are they
> hiding application pLists in Lion (searching for them doesn't find any).
>
> Tony
> 3CAAM
>
Hey,
So I've been having some issues with posting a CGEvent with a function key as a
modifier (or flag). If I call CGEventSetFlags(eventDown,
kCGEventFlagMaskSecondaryFn), and then post the event, all I get is the keyCode
posting (as in maybe the left arrow is pressed), but the function key is
On Jul 21, 2011, at 8:51 AM, Chris Tracewell wrote:
> I have a private framework that is included in a project. Many of the project
> classes descend from a class in the framework. All of these descendent
> classes implement copyWithZone, encodeWithCoder and initWithCoder and thus
> respective
On Jul 21, 2011, at 7:12 AM, bradgibbs wrote:
> I've been using Scripting Bridge in one of my apps. Now that iTunes is a
> native Cocoa app, I'm wondering what effect this is going to have on
> Scripting Bridge compatibility,
Why would it have any effect? Scripting interfaces don’t depend on
On Jul 21, 2011, at 5:22 PM, Joe Turner wrote:
> So I've been having some issues with posting a CGEvent with a function key as
> a modifier (or flag). If I call CGEventSetFlags(eventDown,
> kCGEventFlagMaskSecondaryFn), and then post the event, all I get is the
> keyCode posting (as in maybe t
Thanks guys, I changed to NSDataReadingMappedAlways, since I will read just
a little piece of data (which is generally really fast) is that ok, the
crash risk is really low, so, I mean my software can live with that.
---
Wilker Lúcio
http://about.me/wilkerlucio/bio
Kajabi Consultant
+55 81 82556600
On Jul 21, 2011, at 1:16 PM, Ross Carter wrote:
>> Just a long shot, but does this have anything to do with the new ARC
>> (Automatic Reference Counting)?
>
> Joanna: The app uses GC, and was built long before ARC was announced.
> Everything gets collected on 10.6. I'm puzzled how ARC could af
Hi everyone,
I haven't seen a posting about this yet, so I thought I'd throw it out there.
CocoaHeads Silicon Valley is meeting TONIGHT at 7pm in the "Bodega Bay" tech
talk room at Google in Mountain View.
More information, including the physical address, are available here:
http://cocoahead
Yesterday I wrote:
> Please point me to another list if there's one more appropriate.
>
> Seems that my iTunes visualizer doesn't work in Lion. Works fine in iTunes
> 10.4 under Snow Leopard. Under Lion 64-bit it of course completely fails to
> load. If I start iTunes in 32-bit mode it doesn't
I worded my post poorly. My point was, if Apple has re-written iTunes in
Obj-C, they didn't necessarily re-implement the same scripting interface They
may have added, removed or fixed from 10.3 and earlier, or they may have dumped
scriptability completely. Based on the posts in this group, v
If the scripting interface has changed, the scripting dictionary will have been
updated - browse it in the Script Editor.
There isn't a 'native Objective-C' interface to iTunes and there never will be.
Apple don't even let you run iTunes in a debugger in case you could use that to
reverse-engin
On Jul 21, 2011, at 6:14 PM, bradgibbs wrote:
> My point was, if Apple has re-written iTunes in Obj-C, they didn't
> necessarily re-implement the same scripting interface. They may have added,
> removed or fixed from 10.3 and earlier, or they may have dumped scriptability
> completely.
Oh bo
Hello,
I have to port a software to take advantage of 64 bits adressing.
The software was originally written for Windows...
So there isn't any real runloop, but there are GetMsg() function calls
spread all around the source code (in about 200 files out of the 1000+ !!).
In Carbon, I used the tri
Don't fiddle with the individual properties of the subviews in the window.
Rather, just apply a scaling transform to the entire window, and let Core
Graphics take care of the rest. i.e. do what you really mean to do: scale
everything.
Unfortunately I've just upgraded to Lion ( :-) ) so I'm now bus
Thursday, July 21, 2011 19:00 at Bodega Bay Tech Talk Room 1950 Amphitheater
Parkway Mountain View, California
Thanks AGAIN to David Oster and Google, Inc., Silicon Valley - Cocoaheads 2.0!
When: July 21, 2011 7-9PM Where: Bodega Bay Tech Talk Room 1950 Amphitheater
Parkway Mountain View, Cali
I found this.
NSDate *methodStart = [NSDate date];
/* ... Do whatever you need to do ... */
NSDate *methodFinish = [NSDate date];
NSTimeInterval executionTime = [methodFinish timeIntervalSinceDate:
methodStart];
Google Voice: (508) 656-0622
Twitter: eric_dolecki XBoxLive: edolecki
On Thu, 21 Jul 2011 14:12:53 + (GMT), bradgibbs said:
>I've been using Scripting Bridge in one of my apps. Now that iTunes is a
>native Cocoa app, I'm wondering what effect this is going to have on Scripting
>Bridge compatibility
There's no such thing as "scripting bridge compatibility".
On Thu, 21 Jul 2011 10:04:53 -0500, "Fluffy D. Bunny"
said:
>Hi All,
>
>I have an application here that loads (pushes) a view during the users
>navigation experience. This new view is split screen like so:
>
>
>
>|CONTENT |
>|_|
>| |
On Thu, 21 Jul 2011 16:34:07 -0400, davel...@mac.com said:
> On Jul 19, 2011, at 3:25 PM, Amy Gibbs wrote:
>> In my app I have customer orders, and I just want to print out a copy. ... I
>> could lay it all out on a view and print that?
Yup, I've written an application that prints out customer
Hey,
I understand how events are supposed to be posted, but for command, option,
control and shift, you can easily used the CGEventFlags to specify that part
(and it works). So what you're saying is that for function, you do have to do
it separately? I just don't understand why they would make
On 2011-07-21, at 12:16 PM, Roland King wrote:
> Great - thanks for this - gets me started, I've found the documentation quite
> dense and soon I have to pitch in and just give it a go (I have a model I
> need to update in my test app and I really don't want to toss the data).
>
> I need to h
Hello, how can one determine if the currently running app is 32bit or 64
Specifically:
I have a 32 bit plugin compiled for 10.5+ and it needs to know if it was
loaded by 32bit or 64bit Safari
I am aware of the [[NSRunningApplication currentApplication]
executableArchitecture], unfortunately
On Jul 20, 2011, at 8:01 AM, Eric Matecki wrote:
> I have to port a software to take advantage of 64 bits adressing.
> The software was originally written for Windows...
> So there isn't any real runloop, but there are GetMsg() function calls
> spread all around the source code (in about 200 files
On Jul 21, 2011, at 11:34 PM, danchik wrote:
> Hello, how can one determine if the currently running app is 32bit or 64
>
> Specifically:
>
> I have a 32 bit plugin compiled for 10.5+ and it needs to know if it was
> loaded by 32bit or 64bit Safari
You can move this test to compile time. Afte
64 matches
Mail list logo