Hi again,
Does anyone happen to know how one could set the opacity of an
NSImageView object? I am looking for a way to simply fade in an image
on within my app's window-- but neither of the NSImageView nor
IKImageView list anything about opacity...
Thank you.
Patrick J. Collins
NSView and subclasses have a setAlphaValue: that might do what you
want. It requires a backing Core Animation layer (CALayer) and
therefore is Leopard only. You can have IB setup the layer backing by
setting the view's Wants Core Animation Layer under Effects of the
Inspector window; I
Hi. I've tryed this code and it works. The problem is that with some
machines it causes a kernel panic. They are PPC machines. Isn't this
code compatible?
On Sun, Nov 4, 2007 at 8:45 AM, Andrew James [EMAIL PROTECTED] wrote:
Hi,
How far back is this compatible? is it only 10.5?
On 11/4/07,
In which case I believe you do want to actually release the window,
and store those factors somewhere in the control layer of your
application. So, when you reopen the window, you can reset those
factors appropriately.
On 10 May 2008, at 22:55, Mitchell Livingston wrote:
Hello,
I have a
Hi,
I am implementing something like a coverflow. So I have many visual elements
in the background and one which is closer to the user and in focus.
I put a transparent layer on top of the background elements, which makes
them darker. This is very good to make the user focus more on the element
Mr. Gecko wrote:
Hello I am using this ID3 Framework for cocoa http://
drewfamily.homemail.com.au/Cocoa_-_ID3Tag_framework.html
and I want to add an image from the web which is an jpeg.
I have already tried this.
TagAPI *MP3 = [[TagAPI alloc] initWithGenreList:nil];
[MP3
Hi Julius,
Not sure how much help I'll be, but I looked at the screencast and
going through it frame by frame, it looks as though the weird lines
are shadows (inner shadow, not a drop shadow) from the bounding
rectangle of the icons. You see the same effect from the bounding area
of the
I would also expect that you can observe your
NSManagedObjectContext's hasChanges property using KVO.
No, you can not:
http://developer.apple.com/documentation/Cocoa/Reference/CoreDataFramework/Classes/NSManagedObjectContext_Class/Reference/Reference.html#/
On Sun, May 11, 2008 at 8:03 AM, Julius Eckert
[EMAIL PROTECTED] wrote:
The problem is that some weird lines appear when other layers are drawn in
my scene.
It almost looks like what happens when you blur a finite, fully opaque
image. The blur filter includes the background, naturally, but
On Sun, May 11, 2008 at 2:04 PM, I. Savant [EMAIL PROTECTED] wrote:
Not everything is observable because not everything is compliant. There are
a number of reasons why it might not be feasible or why it might be woefully
inefficient to use KVO.
I take it, Chris, you really like the KVO
On 11 May '08, at 1:59 AM, Jere Gmail wrote:
Hi. I've tryed this code and it works. The problem is that with some
machines it causes a kernel panic. They are PPC machines. Isn't this
code compatible?
You should file a bug report with Apple (bugreport.apple.com) then —
code outside the
on 5/10/08 7:54 PM, [EMAIL PROTECTED] purportedly said:
On May 10, 2008, at 12:03 PM, Dave Fernandes wrote:
You can also register for the
NSManagedObjectContextObjectsDidChangeNotification to get a
notification when anything in the MOC changes. Presumable you can
then check [moc
On May 11, 2008, at 13:25, Finlay Dobbie wrote:
On Sat, May 10, 2008 at 10:45 PM, Torsten Curdt [EMAIL PROTECTED]
wrote:
Note that you don't have to make system_profiler write to a file.
You can
call it with NSTask, attach an NSPipe to its stdout, and read that
with an
NSFileHandle
Folks;
I'm an ObjC guy who has to deal with some Carbon code that looks like
this:
#define kVERSION abc
#define kPARTNUMBER 123
...
if ( (p_flag = initSomeSystem (
kVERSION,
On May 11, 2008, at 11:36 AM, Steve Cronin wrote:
Is this correct?
Is there a better way?
It depends. Does the code take a real C string (char array), or does
it take an Str63 or Str255 or something? If the latter, then you need
to use CoreFoundation to get a Pascal string from the
On Sun, May 11, 2008 at 12:50 PM, Mike [EMAIL PROTECTED] wrote:
I have NSTextField which is connected to a slider in IB with its (Sent
Actions = Take Double Value from).
Don't do this. See below.
(Apparently I can't have them both connected to each other AND still have
connection to my
On May 11, 2008, at 1:26 AM, Michael Vannorsdel wrote:
On May 11, 2008, at 1:03 AM, Patrick J. Collins wrote:
Does anyone happen to know how one could set the opacity of an
NSImageView object? I am looking for a way to simply fade in an
image
on within my app's window-- but neither of the
I am wanting to implement my own custom inline font chooser in a text
application I am writing, but am not sure how I should be hooking up
to NSFontManager. I know that I should setSelectionFont:isMultiple:
on the font manager when the text changes within my text controls, but
I don't
I have an object that observes a few of it's own keys. This works
fine. The problem comes at dealloc time...
I get messages logged to the console for each of the it's own keys
that the object is observing like:
] An instance 0x1c247f50 of class GSLayerView is being deallocated
while key
On 11 May '08, at 10:36 AM, Steve Cronin wrote:
const char * cPartNumber = [partNumber
cStringUsingEncoding:NSUTF8StringEncoding];
That looks correct, assuming the Carbon function does take a C string
in UTF-8 encoding, but you can make it a bit more compact:
const char *
On Sun, May 11, 2008 at 9:36 PM, Colin Cornaby [EMAIL PROTECTED] wrote:
Set a breakpoint on NSKVODeallocateBreak to stop here in the debugger.
What's does the stack trace look like from this breakpoint?
Hamish
___
Cocoa-dev mailing list
#0 0x94eb4993 in NSKVODeallocateBreak
#1 0x94e267c4 in NSKVODeallocate
#2 0x94d7d57f in NSPopAutoreleasePool
#3 0x945b1e54 in -[NSApplication run]
#4 0x9457f030 in NSApplicationMain
#5 0x8208 in main at main.m:13
On May 11, 2008, at 2:08 PM, Hamish Allan wrote:
Le 11 mai 08 à 04:42, Ali Ozer a écrit :
To extract a word range from a string, it may be easier to use
something like NSScanner:
// Defining the words
NSCharacterSet *validWordSet = [NSCharacterSet
alphanumericCharacterSet]; // Or however you want to define words
NSCharacterSet
On Sun, May 11, 2008 at 5:19 PM, Colin Cornaby [EMAIL PROTECTED] wrote:
#0 0x94eb4993 in NSKVODeallocateBreak
#1 0x94e267c4 in NSKVODeallocate
#2 0x94d7d57f in NSPopAutoreleasePool
#3 0x945b1e54 in -[NSApplication run]
#4 0x9457f030 in NSApplicationMain
#5
On Sun, May 11, 2008 at 5:45 PM, Jérome Laurens
[EMAIL PROTECTED] wrote:
So I reimplemented my own NSScanner and it was way faster.
Did you profile the application first to make sure that NSScanner was
indeed the source of your slowdown?
--Kyle Sluder
But see, that's the thing. My objects dealloc method fires AFTER the
warning appears, so my object hasn't actually been deallocated yet.
In the deallocation my object removes the observers from itself. If my
object was actually deallocating first, I should be getting this
message.
I'll
This is a general problem with KVO when observing self. As I
understand, Apple has recognised the issue though and for apps linked
or run on Leopard (one of the 2) the system should be intelligent
enough to not print warnings. The best alternative I can suggest is to
override -release so
Nick;
Thanks for the info, the deal is I don't have access to the source for
'initSomeSystem'.
So I can't answer your question, other than to point out what does
work..
I do know that ' #define kVersion abc ' creates a suitable string.
I'm trying to do the 'best' substitution I can with
On May 11, 2008, at 2:53 PM, Colin Cornaby wrote:
But see, that's the thing. My objects dealloc method fires AFTER the
warning appears, so my object hasn't actually been deallocated yet.
In the deallocation my object removes the observers from itself. If
my object was actually
On May 11, 2008, at 4:11 PM, Steve Cronin wrote:
If that is true, then is the following the best solution?
I guess it is then, unless initSomeSystem() modifies the character
array, in which case you may have a problem. You could also use -
UTF8String instead of -cStringUsingEncoding: if
As you say, there is no way for an app to cause a transition to
IMAVRequested, the user has to initiate the session from iChat.
If your app is not document based, the user can request a session by
selecting your app in the Share a file via
iChat Theater file requester (or by dragging your
Hi Guys,
I've been instructed to implement tool tips for an app such that a
longer, more descriptive tool tip is displayed when the command key is
held down. Allegedly there was a way to do this in Carbon that was
part of the Help Manager API, but is there a Cocoa alternative? I've
had a
I've been playing with NSForm the first time. I'm quite surprised that
I can easily change the font of the cell (title or value) but I can't
easily change the color as you can with plain ole' NSTextField(Cell).
Anyway, no big deal right? There are the attributedStrings methods. A
little
On May 11, 2008, at 4:55 PM, Daniel Parnell wrote:
I'll just have to add code to my app to check for 10.5.2 and pop up
a box telling the user to upgrade their machine. Something like
10.5.2 has a nasty bug, please upgrade, or if you don't want to,
don't bug me error reports because there
I don't think there is an official way to do it.
From the document:
http://developer.apple.com/documentation/DeveloperTools/Conceptual/IB_UserGuide/AdvancedTechniques/chapter_9_section_6.html
It appears Cocoa supports only the basic form:
For Carbon controls you can specify both a
35 matches
Mail list logo