File > New Project...
Single View Application
and click next.c_prescription
instances.c_prescription
object, see Data Model Setup.MDPaginationHelper
is created and initialized:MDPaginationHelperDelegate
protocol,C
didLoadAllResults
, and loadAllPages
is called, you'll get all the results in the first method, together with the results from calling loadNextPage
. So, if you need to get the results of both calls separately, implement both.
📘NoteThe delegate approach and the results callback approach can be used simultaneously.
📘NoteYou'll find documentation aboutcacheResults
andinverseOrder
, as well as for some other pagination options (e.g. list property pagination, or paging using a field other than_id
), in theMDPaginationHelper.h
header file.
MDPaginationHelper
, you can leave that to the MDPaginationManager
. Just create the instances using the MDPaginationManager
class. Let's achieve the same as before; the only difference relies in how you create the instance:Prescription
object definition that was created using the Data Model Setup guide.Prescription
object definition that was created using the Data Model Setup guide.Prescription
object definition that was created using the Data Model Setup guide.
📘Note
📘NoteIf you need to use a custom class instead ofMDObjectInstance
and want Cortex to return instances of your class instead, follow the Cortex Objects guide.
📘File Uploads
kOperationProgressChangedNotification
, which is declared in MDUploadOperations.h
:
Objective-CMDUploadOperation
object is delivered inside the NSNotification.object
property if it is notifying about upload progress. See below for more info.MDUploadOperations
object is delivered inside the NSNotification.object
property if it is notifying about the following events:MDUploadOperation
was added to the queue.MDUploadOperation
succeeded.MDUploadOperation
failed.MDUploadOperation
was removed from completed/failed.MDUploadOperations
class by checking the the following class methods:
Objective-CMDUploadOperation
. Here are some interesting features they provide:progressNumber
attribute to determine the progress percentage (measured in the 0..1 range) of the upload operation.operation
property, of class NSURLSessionDataTask
for the data task that the operation is using. You may call cancel
on this object to cancel the upload.fileName
property contains the name of the file being uploaded.NSProgress
class allows for fine grain progress reporting, the operationProgress
property returns the associated NSProgress
object with this upload operations.cancel
on its data task, which you get from calling operation
on the MDUploadOperation
instance.Medable/Medable.h
with MedableCortex/MedableCortex.h