Hi,
I was writing a Custom TableView whose cells should be drawing no
background. For that I made the Textfieldcell as DrawsBackground:NO.
I have overridden TableView and TextfieldCell also. But when I click on the
textfield to modify its contents, it becomes see through. Rather I want the
textfi
Hello..
I implemented in the past drag and drop, but I did it from within the sub
classes of NSView, Im wondering if I can do the same from within the
NSViewControllers that control the view.. what implications it has? what you
recommend best?
Thanks
Gustavo __
Thank you for your reply.
I understand more or less what are the problems, but I don't really
know what to change to make it work.
You said that this line:
shortcutsTable = [[NSTableView alloc] init];
should be
shortcutsTable = [[NSTableView alloc] initWithFrame:etc];
but although this is
On 7 Dec 2009, at 01:25, Andrew Farmer wrote:
> On 6 Dec 2009, at 13:57, jonat...@mugginsoft.com wrote:
>> 1. GC is on. Does that mean that all allocations invocation by NS*/CF* will
>> be in the auto_zone?
>
> Not necessarily. AppKit and CoreFoundation objects are still capable of
> allocating
On 7 Dec 2009, at 13:01, Kyle Sluder wrote:
> It's good list etiquette to keep replies on-list.
I know; and I apologize for hitting the wrong button.
It happened while I was sitting in a rather noisy cafe (because my home
internet connection is not working).
>
> On Sun, Dec 6, 2009 at 9:55 PM,
Hello.
Sorry I have answered my own question, I can use the NSViewController, but to
register the types I must do it in the view of the controller, even if I do
[[self view] registerForDraggedTypes: ] for the rest of the dragging
destination methods it seems I can use the NSViewcontroller...
HEHEH ok.. I have realized that it can't be done through the NSViewController
but its view...
G.
On Dec 7, 2009, at 2:38 PM, Gustavo Pizano wrote:
> Hello.
>
> Sorry I have answered my own question, I can use the NSViewController, but to
> register the types I must do it in the view of the c
My GC app receives string data from a server and displays it.
If the strings are small, say around 60-100KB then real memory allocation seems
unremarkable.
Above this, say around 100-300KB, then real memory allocation increases by
about 20MB.
This memory does not seem to be released even after a
I am still on the analog clock thing here. I am drawing the hands of the
clock myself and would like to programmatically rotate them.
For instance this is how I am constructing the hour hand:
rootLayer = [CALayer layer];
rootLayer.frame = CGRectMake(240, 160, 240, 160);
self.view.layer addSubla
hey
i am working on an app that needs to scan a bunch of music files, and i am
currently getting the bitrate and duration using AudioFileGetProperty
what i would like to know is if it is possible to determine whether a file
is VBR or not, is this possible using the AudioToolbox framework, or any
You'll probably want to check out cocos2d-iphone, a great objective-c
framework for writing opengl games on the iphone. You can find more
info at http://www.cocos2d-iphone.org.
-Brian
On Mon, Dec 7, 2009 at 2:46 AM, Chunk 1978 wrote:
> cool game, patrick. i especially liked your sound.
>
> On
Is it possible to add a drop shadow to a CAShapeLayer? (not a copy below it,
but a blurred drop shadow)?
If so, how would one approach that?
___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments
Hi everyone,
I'm using an IKImageBrowserView with data rep
IKImageBrowserNSDataRepresentationType.
I'm using
- (NSUInteger) imageBrowser:(IKImageBrowserView *)aBrowser
writeItemsAtIndexes:(NSIndexSet *) itemIndexes toPasteboard: (NSPasteboard
*)pasteboard
and filling the pasteboard with
On 5 Dec 2009, at 10:05, Rossi Matteo wrote:
> I find it very annoying to localize Xibs by keeping a copy for each
> translation. It's both tedious and error-prone.
> I've found that by simply binding each button's title (or wharever other
> control you need) to the appropriate key of a NSDiction
I have the following memory leak in my application. It is mostly
always present but sometimes it will go away. It appears to be
associated with opening an untitled document. Does anyone know how to
get rid of this?
The leak does not grow but stays constant at 186 bytes. Not a big deal
but
On Dec 7, 2009, at 8:40 AM, Richard Somers
wrote:
186 bytes in 1 node:
0x6b8b4
CSMemNewPtr
CSMemNewHandle
QDUnflattenPixPat
_NSReadThemePatternFromRsrc
_NSReadThemeImageFromplutEntry
GetThemeImage
+[NSColor _controlColor]
-[NSDynamicSystemColor recacheColor]
This isn't a leak, it's caching
On Dec 7, 2009, at 2:57 AM, Alberto Piu wrote:
> You said that this line:
>
> shortcutsTable = [[NSTableView alloc] init];
>
> should be
>
> shortcutsTable = [[NSTableView alloc] initWithFrame:etc];
>
> but although this is correct it resets the pointer to a brand new object, so
> I have to
On Dec 7, 2009, at 10:26 AM, Kyle Sluder wrote:
This isn't a leak, it's caching the color. Otherwise it would have
to call into the OS (CoreUI or what have you) every time anyone
asked for the control color, which happens quite often.
MallocDebug reported it as a leak so I thought it was a
On Dec 6, 2009, at 11:48 PM, Patrick J. Collins wrote:
> I wrote a "breakout" style game for actionscript3:
> http://collinatorstudios.com/dev/super_collins_breakout
>
> and it's been on my mind to make a version for the iPhone.. But before I do
> that, I thought it would be good to just make a
On 2009 Dec 07, at 08:28, Andrew Farmer wrote:
> On 5 Dec 2009, at 10:05, Rossi Matteo wrote:
>> I find it very annoying to localize Xibs by keeping a copy for each
>> translation. It's both tedious and error-prone.
>>
>> Obvously I take care to keep control sizes large enough to host each
>>
On Dec 5, 2009, at 12:02 AM, Zephyroth Akash wrote:
> How do I get the class-code definition of a motherboard controller ?
The first question that comes to mind is what do you need to know this
information for? Knowing would give us some idea of how to direct you further.
--
David Duncan
Apple
On Mon, Dec 7, 2009 at 10:34 AM, Jerry Krinock wrote:
> It depends on your situation. I don't foresee my limited resources ever
> going beyond localizing to de, fr, es, it and ja. At the risk of being
> flamed, I'll state that I also use single, language-less xibs.
Why not do both? Japanese
On Dec 7, 2009, at 6:53 AM, Richard wrote:
> i am working on an app that needs to scan a bunch of music files, and i am
> currently getting the bitrate and duration using AudioFileGetProperty
>
> what i would like to know is if it is possible to determine whether a file
> is VBR or not, is this p
On Mon, Dec 7, 2009 at 6:16 AM, Eric E. Dolecki wrote:
> I am still on the analog clock thing here. I am drawing the hands of the
> hourHandPath = CGPathCreateMutable();
Rather than making a mutable path and transforming it, you should
instead create a CAShapeLayer with an immutable path and cha
On 2009 Dec 07, at 10:43, Kyle Sluder wrote:
> On Mon, Dec 7, 2009 at 10:34 AM, Jerry Krinock wrote:
>> It depends on your situation. I don't foresee my limited resources ever
>> going beyond localizing to de, fr, es, it and ja. At the risk of being
>> flamed, I'll state that I also use sing
I don't see a CGPathCreateImmutable() anywhere in the docs.
I did solve my problem though.
On Mon, Dec 7, 2009 at 1:49 PM, Kyle Sluder wrote:
> On Mon, Dec 7, 2009 at 6:16 AM, Eric E. Dolecki
> wrote:
> > I am still on the analog clock thing here. I am drawing the hands of the
> > hourHandPat
On Dec 7, 2009, at 10:34, Jerry Krinock wrote:
> At the risk of being flamed, I'll state that I also use single, language-less
> xibs.
Well, this is no flame, and ya gotta do what ya gotta do, but I will just point
out that you and the OP are mostly talking about translation, not localization
On Mon, Dec 7, 2009 at 11:32 AM, Eric E. Dolecki wrote:
> I don't see a CGPathCreateImmutable() anywhere in the docs.
Sorry, I was thinking in NSBezierPath terms.
> I did solve my problem though.
How did you do that? Did you do what I recommended, something else, or both?
--Kyle Sluder
__
float radians = DegreesToRadians((h*30+m/2));
CATransform3D hourTransform;
hourTransform = CATransform3DMakeRotation(radians, 0, 0, 1.0 );
[hourHandLayer setTransform:hourTransform];
I have a method called on a timer every second and the hands update from it.
On Mon, Dec 7, 2009 at 2:37 PM,
That's cool - when I used PNGs and rotated them, they looked all aliased on
the iPhone so I went with CAShapeLayers instead. Thanks for that link
though.
On Sun, Dec 6, 2009 at 12:21 AM, Scott Anguish wrote:
> not sure if this is helpful, but on http://www.abandoninplace.com/ in
> SampleCode, th
Thanks Gideon, that worked.
On Sun, Dec 6, 2009 at 9:03 PM, Gideon King wrote:
> Your code restores the graphics state, which will remove your rounded rect
> clipping path, before you draw the image.
>
> If you draw the image before restoring the graphics state, you should be
> OK.
>
> Also you
On Dec 7, 2009, at 9:36 AM, Richard Somers wrote:
>> This isn't a leak, it's caching the color. Otherwise it would have to call
>> into the OS (CoreUI or what have you) every time anyone asked for the
>> control color, which happens quite often.
>
> MallocDebug reported it as a leak so I though
Hi,
in Apple`s reference library, examples the event stream looks like following:
NSApplication -> NSWindow -> NSView / custom View / OpenGLView or any
NSResponder-inherited class; If a display is captured (for OpenGL)
does view receive any events or not? if not and if app for example
works in full
Folks;
In Snow Leopard an Address Book user now has a preference setting for setting
the 'default account for new contacts'
-save always stores to the local machine regardless
Am I just missing something?
Thanks,
Steve
___
Cocoa-dev mailing list (
Folks;
I am trying to understand the ABAddressBook's ABLocalizedPropertyOrLabel()
function.
I can find descriptions of what it is supposed to do but no actual examples or
guidance on how to use it or the necessary conditions for it to work.
I have configured a Snow Leopard machine to use Danis
for 2 days now i've had unsuccessful attempts at trying to track
UITouches that share the same view.
i have a plain, full screen view that accepts multiple touches. i
have 3 labels titled "Touch1", "Touch2", "Touche3". all i'm trying to
accomplish is to output the coordinates of the touches thru
In this application, I have a method that reads in an image and writes it back
out with a different resolution. This resolution is specified by the user via
a textfield in a sheet.
On Leopard, the method works as expected; whatever value for the resolution is
specified is what is actually used
Is it possible to have a vertical NSScroller start from a specified Y
coordinate rather than at the top of its scroll view?
Thanks___
Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
Please do not post admin requests or moderator comments to the lis
On Dec 7, 2009, at 4:12 pm, Chunk 1978 wrote:
> if ([[[event allTouches] anyObject] view] == self)
> {
> for (UITouch *touch in touches)
> {
> CGPoint touchPoint = [[touches anyObject]
> locationInView:self];
>
On 08/12/2009, at 11:58 AM, PCWiz wrote:
> Is it possible to have a vertical NSScroller start from a specified Y
> coordinate rather than at the top of its scroll view?
[NSScroller setFloatValue:] or [NSScroller setIntValue:]
--Graham
___
Cocoa-d
Everyone seems to have already pointed you in the right direction, but
as someone who has specific experience making such a game solo
(http://bravobug.com/megabrickbash3000) I wanted to just throw in my
.02 that OpenGL is definitely the way to go. NeHe's tutorials will be
very handy along the way a
is this suppose to work for multiple touches where one touch is
already present, then another touches the screen? it's not working
for me. each time i touch the screen and add an object to the
myTouches array the return count always returns 1, no matter how many
fingers i already have touching th
When setting the value for the note property in an ABPerson record, the new
value isn't available until relaunching the application.
Scenario:
- read the note value for a contact and I get "foo"
- set the value to "bar"
- save the address book
- read the note value for the contact but get an em
Hi,
I am trying to develop an input method using IMKit approach by implementing
the below.
-(BOOL)inputText:(NSString*) string key:(NSInteger)keyCode
modifiers:(NSUInteger)flags client:(id)sender
I took the IMK sample available at ADC, and understood the flow by
installing and dumping the traces
I'm trying to move from a custom view to an IKImageBrowserView in a project,
and running into a somewhat odd problem. Context: my IKImageBrowserItems are
IKImageBrowserNSImageRepresentationType, backed by a relatively
large (~600x800) NSImage.
When first drawn, at any scale factor, this looks grea
i've complete my project which runs great on 10.5 leopard and i am
trying to compile it to work with 10.4 (tiger). i use
nscalendardate which uses nsinteger which does not exist in 10.4.
how do i adjust dates using nscalendardate which is supposed to work
with 10.0 and later without h
On Dec 7, 2009, at 5:32 PM, Sissy wrote:
>> how do i adjust dates using nscalendardate which is supposed to work with
>> 10.0 and later without having the use of nsinteger which only works on 10.5
>> and later.
NSInteger works on all versions of Mac OS X; you just have to define it
yourself i
Hello.
I have odd problems with using NSData, maybe someone could point me what's
going wrong here.
I have a simple Cocoa document-based application, which uses a custom
NSOpenGLView derived class. This view object has a reference to the document
object (this binding is set in the nib file), a
48 matches
Mail list logo