Click here to Skip to main content
15,880,905 members
Home / Discussions / Objective-C and Swift
   

Objective-C and Swift

 
GeneralRe: How to access webcam and capture image? Pin
Le@rner7-Jun-17 0:42
Le@rner7-Jun-17 0:42 
SuggestionRe: How to access webcam and capture image? Pin
Jochen Arndt7-Jun-17 0:49
professionalJochen Arndt7-Jun-17 0:49 
GeneralRe: How to access webcam and capture image? Pin
Le@rner7-Jun-17 1:25
Le@rner7-Jun-17 1:25 
GeneralRe: How to access webcam and capture image? Pin
Jochen Arndt7-Jun-17 1:49
professionalJochen Arndt7-Jun-17 1:49 
Questionhow add control manually in NSBox? Pin
Le@rner15-May-17 20:36
Le@rner15-May-17 20:36 
QuestionCan i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Member 1319561211-May-17 21:09
Member 1319561211-May-17 21:09 
AnswerRe: Can i use scanline Flood Fill algorithm to apply gradient in UIImage?How to use? Pin
Richard MacCutchan11-May-17 21:15
mveRichard MacCutchan11-May-17 21:15 
QuestionCrashing in printing Pin
Le@rner5-Apr-17 1:22
Le@rner5-Apr-17 1:22 
hi all,

when i trying to print or preview multiple pages from my application

i got this

exception

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.'

i really don't understand

what can i do here.

in printing i pass an image creating from rendering of my customise view.

please help me for this.

if there is a one page its working fine

but when i create different image at time of printing its crash

crash log:

Exception Type:  EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Crashed Thread:  7

Application Specific Information:
abort() called
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Printing failed because PMSessionEndDocumentNoDialog() returned -30871.'

Thread 7 Crashed:
0   libSystem.B.dylib             	0x00007fff837d59ce __semwait_signal_nocancel + 10
1   libSystem.B.dylib             	0x00007fff837d58d0 nanosleep$NOCANCEL + 129
2   libSystem.B.dylib             	0x00007fff838323ce usleep$NOCANCEL + 57
3   libSystem.B.dylib             	0x00007fff83851a00 abort + 93
4   libstdc++.6.dylib             	0x00007fff8791f5d2 __tcf_0 + 0
5   libobjc.A.dylib               	0x00007fff8116cb39 _objc_terminate + 100
6   libstdc++.6.dylib             	0x00007fff8791dae1 __cxxabiv1::__terminate(void (*)()) + 11
7   libstdc++.6.dylib             	0x00007fff8791db16 __cxxabiv1::__unexpected(void (*)()) + 0
8   libstdc++.6.dylib             	0x00007fff8791dbfc __gxx_exception_cleanup(_Unwind_Reason_Code, _Unwind_Exception*) + 0
9   libobjc.A.dylib               	0x00007fff81168fa2 object_getIvar + 0
10  com.apple.CoreFoundation      	0x00007fff800b45d7 +[NSException raise:format:arguments:] + 103
11  com.apple.CoreFoundation      	0x00007fff800b4564 +[NSException raise:format:] + 148
12  com.apple.AppKit              	0x00007fff8556086e -[NSPrintSpoolingGraphicsContext dealloc] + 37
13  com.apple.CoreFoundation      	0x00007fff80030fc3 __CFArrayReleaseValues + 435
14  com.apple.CoreFoundation      	0x00007fff8000eaa3 _CFRelease + 179
15  com.apple.AppKit              	0x00007fff8500b53d __NSAppKitFinalizeThreadData + 260
16  libSystem.B.dylib             	0x00007fff8379c751 _pthread_tsd_cleanup + 187
17  libSystem.B.dylib             	0x00007fff8379c39c _pthread_exit + 147
18  com.apple.Foundation          	0x00007fff83bd227f __NSFinalizeThreadData + 0
19  com.apple.Foundation          	0x00007fff83bd2217 __NSThread__main__ + 1448
20  libSystem.B.dylib             	0x00007fff8379bfd6 _pthread_start + 331
21  libSystem.B.dylib             	0x00007fff8379be89 thread_start + 13

..

please help

modified 5-Apr-17 8:11am.

AnswerRe: Crashing in printing Pin
Surya_Narayan10-Apr-17 23:26
professionalSurya_Narayan10-Apr-17 23:26 
GeneralRe: Crashing in printing Pin
Le@rner11-Apr-17 22:19
Le@rner11-Apr-17 22:19 
QuestionHow to get the sensor data Pin
Member 1302743027-Feb-17 14:56
Member 1302743027-Feb-17 14:56 
AnswerRe: How to get the sensor data Pin
Richard MacCutchan27-Feb-17 21:22
mveRichard MacCutchan27-Feb-17 21:22 
Questionimage from custom NSView , image quality is very bad. Pin
Le@rner16-Jan-17 18:50
Le@rner16-Jan-17 18:50 
AnswerRe: image from custom NSView , image quality is very bad. Pin
Surya_Narayan10-Apr-17 23:31
professionalSurya_Narayan10-Apr-17 23:31 
GeneralRe: image from custom NSView , image quality is very bad. Pin
Le@rner11-Apr-17 22:17
Le@rner11-Apr-17 22:17 
QuestionSimultaneous Microphone Access on iPhone Pin
Member 123773388-Mar-16 0:35
Member 123773388-Mar-16 0:35 
QuestionObjective C first program from the book, warning messages Pin
Alla__10-Nov-15 1:44
Alla__10-Nov-15 1:44 
AnswerRe: Objective C first program from the book, warning messages Pin
BharathReddy V12-Jan-16 2:04
BharathReddy V12-Jan-16 2:04 
QuestionLinker command failed with exit code 1 (use -v to see invocation) in xcode 5.1.1 Pin
Member 1198376314-Sep-15 10:17
Member 1198376314-Sep-15 10:17 
QuestionImagePickerController image size Pin
liel333-Aug-15 11:30
liel333-Aug-15 11:30 
AnswerRe: ImagePickerController image size Pin
biji cabe18-Dec-16 22:25
biji cabe18-Dec-16 22:25 
QuestioniOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 2:37
Member 1176696715-Jun-15 2:37 
SuggestionRe: iOS XMPP received message in coversation screen Pin
Richard MacCutchan15-Jun-15 4:19
mveRichard MacCutchan15-Jun-15 4:19 
GeneralRe: iOS XMPP received message in coversation screen Pin
Member 1176696715-Jun-15 20:42
Member 1176696715-Jun-15 20:42 
AnswerRe: iOS XMPP received message in coversation screen Pin
Dennis E White17-Jun-15 5:54
professionalDennis E White17-Jun-15 5:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.