On 24 Mar 09, at 05:20, Eric Gorr wrote:
Well, actually, considering that using NSObliquenessAttributeName
caused the text to look blury, I switched to userFontOfSize which
provides a font with a clean italic version.
If anyone has a better solution, I would be interested.
I filed bug
Hi everyone
I want to extract an audio file's basic information in my application.
Like the iTunes ,when importing a song,
the song's information (for example,Name ,Time ,Artist, Album ,Genre,Rating...)
is extracted from the audio file.
How to do it? Is there any API about it ?
On Mar 24, 2009, at 6:05 AM, Oleg Krupnov wrote:
My app needs to disable some functions when a disk (volume) is
unmounted, and then enable the functions back again if the *same*
volume is mounted back again.
Is there a kind of unique IDs on disks and volumes I could use for
identifying them?
Not really cocoa related, but what you want depends on the format of
the metadata. For ordinary mp3 files the norm is to use id3tags.
There are various libraries out there for handling id3tags. Google is
your friend.
Sent from my iPhone
On 25 Mar 2009, at 06:58, ldl0313036
I have a C++ singleton class where you call methods to execute
commands that are actually performed by a background thread. When a
command is requested it is put in a queue and I use raise(SIGUSR2)
to wake-up the background thread. The reason I use signals to wake-up
the background thread is that
Hi Michael and Graham,
Thank you both for your replies and time...sorry for my delay. You have been
most helpful and even though I'm still working on it I believe you have given
me enough info and understanding to get it to do what I need. There might be
some issues with other parts of my
On Mar 25, 2009, at 2:50 AM, Påhl Melin wrote:
I have a C++ singleton class where you call methods to execute
commands that are actually performed by a background thread. When a
command is requested it is put in a queue and I use raise(SIGUSR2)
to wake-up the background thread. The reason I use
On 24 Mar 09, at 23:58, ldl0313036 wrote:
I want to extract an audio file's basic information in my
application. Like the iTunes ,when importing a song,
the song's information (for example,Name ,Time ,Artist,
Album ,Genre,Rating...) is extracted from the audio file.
How to do it? Is there
2009/3/25 Ken Thomases k...@codeweavers.com:
On Mar 25, 2009, at 2:50 AM, Påhl Melin wrote:
I have a C++ singleton class where you call methods to execute
commands that are actually performed by a background thread. When a
command is requested it is put in a queue and I use raise(SIGUSR2)
to
Hello All,
Is there any way to uniquely identify the mounted volumes.
What information from the mounted drive can help to identify the same,
the next time it mounts.
With Regards
Abu
---
Robosoft Technologies - Come home to Technology
Disclaimer:
Le 25 mars 09 à 11:15, Abdul Sattar a écrit :
Hello All,
Is there any way to uniquely identify the mounted volumes.
What information from the mounted drive can help to identify the
same, the next time it mounts.
With Regards
Abu
Search archives…
The answer was already post three hours
On Mar 25, 2009, at 5:20 AM, Påhl Melin wrote:
2009/3/25 Ken Thomases k...@codeweavers.com:
On Mar 25, 2009, at 2:50 AM, Påhl Melin wrote:
When the singleton is constructed the first time I use
signal(SIGUSR2,
SIG_IGN) to ignore the default signal handler to kill the process.
And
this
On Mar 25, 2009, at 2:34 AM, Andrew Farmer wrote:
On 24 Mar 09, at 05:20, Eric Gorr wrote:
Well, actually, considering that using NSObliquenessAttributeName
caused the text to look blury, I switched to userFontOfSize which
provides a font with a clean italic version.
If anyone has a
I do need to look at more than NSDocuments and lsof seem to also be
close but missed some documents.
How about...
I have a list of open applications (PSN and therefore PID) and I would
like to ask each if they have any open documents and what the paths
are for those open documents. I
Thanks Ken,
It looks much like what I need, however, for a FAT32 Flash USB drive
the both UUIDs are NULL. Also, I've found that for network drives and
FTP drives, the DADiskCopyDescription function returns NULL.
Is there any workaround for these issues?
On Wed, Mar 25, 2009 at 9:03 AM, Ken
Hello Jean,
Thanks for your swift replay.
By using FSMegaInfo tool it is possible to identify the local
volumes, some USB devices.
But the tool does not give any information on Network mounted volumes.
Is there any way to identify Network mounted volumes and CD-ROMs
uniquely.
Any
That would be awesome. But from the qtkit framework you can get only track
attributes, such as the format, the creation date, the size and so on.
However, the best way to deal with id3 tags is currently the id3tag
framework, entirely written in Cocoa.
2009/3/25 Ken Thomases k...@codeweavers.com:
Ignoring a signal doesn't prevent it from being delivered. GDB is stopping
at the point of delivery, _before_ any decision has been made about how to
handle the signal. The fact that the process will ignore the signal is
something that is _about
I'm not completely satisfied using signals (especially since they are
not dynamically allocated and I may want to use more in the future)
but signals was the lowest level alternative I could think about. This
code will be used _very_ frequently and I want to use the lowest
possible level, mainly
2009/3/25 Benjamin Stiglitz s...@apple.com:
I'm not completely satisfied using signals (especially since they are
not dynamically allocated and I may want to use more in the future)
but signals was the lowest level alternative I could think about. This
code will be used _very_ frequently and I
Namaste!
For the sake of this discussion, here's a sample entity layout:
Two entities, one named A, the other named B. A and B have a reflexive
relationship with each other (that would be a many-to-many type). The
backend is a SQLite store (not that it should matter).
I'd like my interface to
On Tue, Mar 24, 2009 at 10:43 PM, Ryan Joseph
thealchemistgu...@gmail.com wrote:
I have a window in a NIB file which I have assigned a class in the Class
Identity field and corresponding NSWindow subclass in code. According to
the reference (which is copied below) I think I should be receiving
That explains it, Thank you Mike.
On Mar 25, 2009, at 9:26 PM, Michael Ash wrote:
On Tue, Mar 24, 2009 at 10:43 PM, Ryan Joseph
thealchemistgu...@gmail.com wrote:
I have a window in a NIB file which I have assigned a class in the
Class
Identity field and corresponding NSWindow subclass in
On Mar 25, 2009, at 7:29 AM, Ryan Joseph wrote:
The question is, will it be safe to override methods like
initWithObjects: that are owned by Cocoa and created through
convenience functions? Will those objects be sent -dealloc also?
Second, given the Objective-C runtime should I replace the
On Wed, 25 Mar 2009 09:43:55 +0700, Ryan Joseph
thealchemistgu...@gmail.com said:
I have a window in a NIB file which I have assigned a class in the
Class Identity field and corresponding NSWindow subclass in code.
According to the reference (which is copied below) I think I should be
receiving a
On Mar 24, 2009, at 6:12 PM, Eric Gorr wrote:
On Mar 24, 2009, at 6:04 PM, Quincey Morris wrote:
On Mar 24, 2009, at 14:48, Eric Gorr wrote:
While I should be able to use:
- (id)initWithBitmapDataPlanes:(unsigned char **)planes pixelsWide:
(NSInteger)widthpixelsHigh:(NSInteger)height
Check out the QuickTime Metadata API. Here's a pointer to the
reference document:
http://developer.apple.com/documentation/QuickTime/Reference/QTRef_MovieProperties/Reference/reference.html
You may want a more verbose guide to get you started. If so, check
out the QuickTime 7 Update
Hi there,
I want to set up two view controllers but I don't want to create a XIB
and .m/.h for each controller. Is it possible to use a single set of
files to do so? As I was reading the book by Mark and LaMarche, it
looks that their approach is to create a pair of those files for each
Am 25.03.2009 um 17:31 schrieb Weydson Lima:
I want to set up two view controllers but I don't want to create a
XIB and .m/.h for each controller. Is it possible to use a single
set of files to do so?
Yes. But unwise.
As I was reading the book by Mark and LaMarche, it looks that their
On Wed, Mar 25, 2009 at 12:31 PM, Weydson Lima weys...@gmail.com wrote:
I want to set up two view controllers but I don't want to create a XIB and
.m/.h for each controller. Is it possible to use a single set of files to do
so? As I was reading the book by Mark and LaMarche, it looks that
On Mar 24, 2009, at 2:36 PM, Eric Hermanson wrote:
I was under the impression the iPhone ran the modern (64-bit)
Objective-C runtime. I'm using xCode 3.x and iPhone SDK 2.2. Are
synthesized instance variables not supported, or do I need to change
some xCode/project configuration settings
Why can't Unix be a modern OS with dynamically allocated
and named signals? :-)
Signal-handling behavior is so restricted to begin with that more
signals would just end up with more code making non-async-signal-safe
calls. Pipes are easy to create, and can easily be passed from process
to
Using 10.5.6, my inspection panel has a NSTreeController that has two
bindings - ContentSet and Parameter (the first to a set of objects,
the latter to the manageObjectContext). Using NSLog's I have verified
the bindings are correct.
The problem comes when I set Uses Lazy Evaluation (ala
Påhl Melin wrote:
Why can't Unix be a modern OS with dynamically allocated
and named signals? :-)
Because if you want that kind of flexibility, you're expected to
provide it yourself, using your knowledge of what will be the best
and most scalable use of available computer resources.
On Mar 25, 2009, at 7:47 AM, Jon C. Munson II wrote:
Two entities, one named A, the other named B. A and B have a
reflexive
relationship with each other (that would be a many-to-many type). The
backend is a SQLite store (not that it should matter).
To be clear, a reflexive
On Wed, Mar 25, 2009 at 5:07 PM, Sidney San Martín s...@sidneysm.com wrote:
While my object is updated just fine when a field loses focus, nothing
happens when the window is closed or a button is clicked: the last-edited
field is always out of sync. How can I force the focused element to commit
On Mar 25, 2009, at 5:07 PM, Sidney San Martín wrote:
While my object is updated just fine when a field loses focus,
nothing happens when the window is closed or a button is clicked:
the last-edited field is always out of sync. How can I force the
focused element to commit its changes?
On 25 Mar 2009, at 21:07, Sidney San Martín wrote:
I'm trying out Cocoa bindings in my application, mostly on
NSTextFields, and am running into a small glitch.
While my object is updated just fine when a field loses focus,
nothing happens when the window is closed or a button is clicked:
Thanks for the quick responses, Kyle and Jim.
I really dove into bindings, so I wasn't sure where to turn in the
docs, but -commitEditing does just the trick.
Jonathan, thank you for the information and sample code. I'll read up.
-Sidney
On Mar 25, 2009, at 5:18 PM, Kyle Sluder
hello I'm using a custom NSCell in order to draw some elements in an
NSTableView. I've created a simple tableview with 2 row. However my
draws is always put on first row while the second one is empty.
This my code for NSOutlineView delegate http://pastebin.com/m7f5f8a0f
while this is for my NSCell
Hi,
I've created a custom view to replicate the blue panel at the bottom
of the iPod Summary page in iTunes. All is well except that when I add
controls on top of this view (buttons etc) in IB, when the application
is launched the controls have thick gray borders around them until I
resize the
On Mar 25, 2009, at 2:47 PM, malcom wrote:
hello I'm using a custom NSCell in order to draw some elements in an
NSTableView. I've created a simple tableview with 2 row. However my
draws is always put on first row while the second one is empty.
This my code for NSOutlineView delegate
If you install a background agent into an application package, and
said tool invokes
[[NSBundle mainBundle] bundlePath] ;
it gives the expected path with no side effects. But if instead said
tool invokes the equivalent Carbon function,
GetProcessBundleLocation()
it also gives
On Mar 25, 2009, at 4:20 PM, Jerry Krinock wrote:
Is it a bug? Does anyone know if this is part of a more general
class of API that should not be used in background agents? Is there
anywhere a concise list of all the API which should not be invoked
in background agents? I'm aware that
On Mar 25, 2009, at 7:20 PM, Jerry Krinock wrote:
/* Use this code to build a Cocoa Command-Line tool and place
the product in Contents/MacOS of any application. Then
doubleclick it. Watch the log in the Terminal window and
un-hide and watch your dock.
There are a couple of edge cases you
At 12:57 -0400 25/3/09, I. Savant wrote:
You can certainly have more than one class declared and implemented
in the same .h/.m files. You can also have multiple controllers within
the same XIB. Wherever your classes are declared/implemented, they
show up as available in Interface Builder as
On Mar 25, 2009, at 8:26 PM, Peter N Lewis wrote:
At 12:57 -0400 25/3/09, I. Savant wrote:
You can certainly have more than one class declared and implemented
in the same .h/.m files. You can also have multiple controllers
within
the same XIB. Wherever your classes are
On Mar 25, 2009, at 2:44 PM, Jon C. Munson II wrote:
Do you mean here that you will pop up a window that contains an
NSTableView that will be used to select rows of Entity B? Correct
language is critical. I think most Cocoa developers would assume that
popup means NSpopupButton.
[Jon C.
I was trying to make a static text item look dimmed like so:
NSColor* newColor = [[theField textColor]
colorWithAlphaComponent: (mIsEnabled? 1.0f : 0.5f) ];
[theField setTextColor: newColor ];
It works fine on Leopard, but on Tiger, the text stays stubbornly black.
Why?
--
James W.
On 2009 Mar 25, at 16:52, Jim Correia wrote:
you can (in certain situations) end up with an incorrect entry in
the LS database which will cause the wrong executable to be launched
when the user double clicks on your app in the Finder.
That's a show-stopper in my book, chief. Unless
On Mar 25, 2009, at 13:44, Jon C. Munson II wrote:
[Jon C. Munson II] OK. Benjamin Stiglitz responded suggesting I
take a
look at the ToManyCheckbox example on mmalc's page, so I'll do that
and see
if that clarifies things. Also, I noticed in the iClass example
that code
is used to
Is there a way to read one line of a text file at a time using NSFileHandle
(the way fgets does)?
Erg
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the list.
Contact the
Hi everyone.
I am attempting to sort through the contents of a .plist file in
NSDictionary, but am running into some problems. Since .plist files are
kind of like a tree, I can't just call objectForKey as there is no way for
me to return the instance that I am looking for. How would someone get
On Wed, Mar 25, 2009 at 5:53 PM, Mic Pringle micprin...@gmail.com wrote:
Hi,
I've created a custom view to replicate the blue panel at the bottom
of the iPod Summary page in iTunes. All is well except that when I add
controls on top of this view (buttons etc) in IB, when the application
is
On Wed, Mar 25, 2009 at 10:03 PM, Jerry Krinock je...@ieee.org wrote:
I have read in blog posts and on this list that, sometime within the last
few years, the officially-sanctioned location changed from
Contents/Resources to Contents/MacOS. One source said it was mentioned at a
WWDC. But I
Is there a way to read one line of a text file at a time
using NSFileHandle (the way fgets does)?
This code illustrates how you might approach
filtering lines of data obtained through an NSFileHandle.
NSFileHandle* yourFileHandle;
NSString* input;
NSArray* lines;
Is there a way to read one line of a text file at a time
using NSFileHandle (the way fgets does)?
This code illustrates how you might approach
filtering lines of data obtained through an NSFileHandle.
I've come across this problem as well - its fine to say read it all
into memory, then
On 2009 Mar 25, at 19:53, Pierce Freeman wrote:
I am attempting to sort through the contents of a .plist file in
NSDictionary, but am running into some problems. Since .plist files
are
kind of like a tree, I can't just call objectForKey as there is no
way for
me to return the instance
Howdy,
I am a bit new to ObjectiveC and XCode so please forgive me if I am
using incorrect terms in describing my problem.
I have a NSTable bound to an object and have written delegate methods
in the object for numberOfRowsInTableView and
objectValueForTableColumn and those are being
59 matches
Mail list logo