• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
two things (newbie)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

two things (newbie)


  • Subject: two things (newbie)
  • From: Rolando Abarca <email@hidden>
  • Date: Thu, 10 Jun 2004 00:34:25 -0400

1)
I'm implementing a CD+G (karaoke) viewer, and currently this is my approach:
In a window I have a custom view (NSView Subclass) that has a method (loadCDG) that instantiates a timer, wich calls readCDG.
readCDG fills a buffer from a file, and then it needs to update the content of the view, for that it calls [self display]. Apparently this is not the way to go, because it's not displaying all the changes... (I put my draw code in drawRect: and it's not called every time I call [self display]).

2)
I need to do pixel manipulation, this is what I'm doing now:

NSBitmapImageRep *rep = [[NSBitmapImageRep alloc] initWithFocusedViewRect:[self frame]];
unsigned char *data = [rep bitmapData];

and then try to modify data. But what's the format of the data?... and is data the actual content of the view, or just a copy? I mean, do I need to update it after I change it? if so, how?

thanks for any info.

regards,
Rolando Abarca.-
Departamento de Ciencias de la Computacion
Facultad de Ciencias Fisicas y Matematicas
Universidad de Chile
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.


  • Follow-Ups:
    • Re: two things (newbie)
      • From: John Terranova <email@hidden>
  • Prev by Date: drag and drop on Dock
  • Next by Date: Probably a silly question but...
  • Previous by thread: Re: drag and drop on Dock
  • Next by thread: Re: two things (newbie)
  • Index(es):
    • Date
    • Thread