Thread View: comp.sys.next.programmer
2 messages
2 total messages
Started by root Operator
Mon, 16 Nov 1992 00:43
Editable ButtonCells
Author: root Operator
Date: Mon, 16 Nov 1992 00:43
Date: Mon, 16 Nov 1992 00:43
13 lines
1007 bytes
1007 bytes
Reply-To: massimo@cello.open.ch Distribution: world I need a cell, which is able to diplay an icon and an editable text together, for example in a browser or in matrix. Unfortunately the ButtonCell class supports icons with non-editable text. Is it right or I am missing something ? How is it possible to overcome this limitation ? Massimo Arnoldi, Via Vignascia, 6982 Serocca d'Agno, Switzerland Tel: +4191 595539 E-mail: massimo@cello.open.ch (NeXT) NeXT Registered Developer
LipService
Author: Vince Demarco
Date: Mon, 16 Nov 1992 05:09
Date: Mon, 16 Nov 1992 05:09
45 lines
1832 bytes
1832 bytes
I have been writing a Cell for the text object, to implement a Next
Mail like lip services, thinggy.
So far everything works execept saving and retrieving the file (and
also copying and pasting the lips)
The problem is in my (read/write)RichText: methods in my custom Cell,
here is the code:
- readRichText:(NXStream *)stream forView:view
{
/******
printf("readRichText\n");
lipsImage = [NXImage findImageNamed:"lips"];
sound = [[Sound allocFromZone:[self zone]] init];
[sound readSoundFromStream:stream];
return self;
}
- writeRichText:(NXStream *)stream forView:view
{
if ([sound duration] <= 0.0){
printf("writing Empty Sound\n");
[[Sound findSoundFor:"sound.snd"] writeSoundToStream:stream];
}else{
[sound writeSoundToStream:streamtream];
}
return self;
}
The problem seems to be the Sound object isn't writing the Sound file
to the stream, so when the program attempts to read the sound file
from the stream it hangs.
I know that the above method, doesn't result in a text file being
produced, this isn't a problem in my case.
Does anyone have any suggestions???
vince
--
demarco@cpsc.ucalgary.ca
vince@whatnxt.cuc.ab.ca
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads